minhtrannhat 69debdb213
Feat(API): PostgreSQL database setup
- Fix enviroment variables
- Fix the ping route for API
- Added database connection for future testing
2022-12-14 21:35:00 -05:00

8 lines
218 B
Python

from quart import Quart
async def test_control(app: Quart) -> None:
test_client = app.test_client()
response = await test_client.get("/control/ping/")
assert (await response.get_json())["ping"] == "pong"