You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
01/01OS/_01OS/server/tests/test_run.py

14 lines
257 B

# test_main.py
import subprocess
import uuid
import pytest
from fastapi.testclient import TestClient
@pytest.mark.asyncio
def test_ping(client):
response = client.get("/ping")
assert response.status_code == 200
assert response.text == "pong"