chore: update project structure and add testing framework
This commit is contained in:
1
tests/api/__init__.py
Normal file
1
tests/api/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# API tests package
|
||||
11
tests/api/test_root.py
Normal file
11
tests/api/test_root.py
Normal file
@@ -0,0 +1,11 @@
|
||||
def test_read_root(client):
|
||||
"""
|
||||
Test that the root endpoint returns the correct response.
|
||||
"""
|
||||
response = client.get("/")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
assert "message" in data
|
||||
assert "documentation" in data
|
||||
assert "version" in data
|
||||
assert "auth" in data
|
||||
Reference in New Issue
Block a user