Skip to content

Commit 2692134

Browse files
committed
tests change
1 parent ff29123 commit 2692134

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

backend/tests/test_basic.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1-
def test_basic_math():
2-
assert 1 + 1 == 2
1+
def test_health_check(client):
2+
# 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

Comments
 (0)