diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/test_server.py b/tests/test_server.py new file mode 100644 index 0000000..7553541 --- /dev/null +++ b/tests/test_server.py @@ -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" \ No newline at end of file