Added simple RBAC endpoints and simple tests.
This commit is contained in:
1 parent
33cd28376d
commit
ef37f577e3
14 files changed
+191
-121
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""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
|
||||
Reference in new issue
Block a user