You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
254 B
Python

from app.main import app
from starlette.testclient import TestClient
client = TestClient(app)
def test_read_main():
response = client.get('/ping')
assert response.status_code == 200
data = response.json()
assert "pong" in data['ping']