14 lines
271 B
Python
14 lines
271 B
Python
"""Unit tests for main.py."""
|
|
|
|
from fastapi.testclient import TestClient
|
|
|
|
from app.main import app
|
|
|
|
client = TestClient(app)
|
|
|
|
|
|
def test_status_check() -> None:
|
|
"""Tests that status check returns 200."""
|
|
response = client.get("/")
|
|
assert response.status_code == 200
|