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.
|
# 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"
|