We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff29123 commit 2692134Copy full SHA for 2692134
backend/tests/test_basic.py
@@ -1,2 +1,15 @@
1
-def test_basic_math():
2
- assert 1 + 1 == 2
+def test_health_check(client):
+ # Simple check for /api/submit-tax GET to verify server is running
3
+ response = client.get("/api/submit-tax")
4
+ assert response.status_code == 200
5
+ assert isinstance(response.get_json(), list)
6
+
7
8
+# def test_advice_route(client, mocker):
9
+# mock_response = {"advice": "Dummy"}
10
+# mock_openai = mocker.patch(
11
+# "openai.ChatCompletion.create", return_value=mock_response
12
+# )
13
+# response = client.post("/api/advice", json={"data": "test"})
14
+# assert response.status_code == 200
15
+# assert "advice" in response.json
0 commit comments