Skip to content

Commit

Permalink
start tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbrar committed Jun 26, 2023
1 parent 50b4315 commit 9e45ba0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Empty file added app/__init__.py
Empty file.
Empty file added tests/__init__.py
Empty file.
15 changes: 15 additions & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from fastapi.testclient import TestClient

from app.server import APP

testclient = TestClient(APP)

def test_sync_get_appraisal():
"""Test calling /query endpoint."""
response = testclient.post(
"/sync_get_appraisal",
json={"message": {}},
)
response.raise_for_status()
response_json = response.json()
assert response_json["status"] == "Rejected"

0 comments on commit 9e45ba0

Please sign in to comment.