Fixed broken python tests
Browse files
backend/tests/test_api.py
CHANGED
@@ -5,7 +5,7 @@ client = TestClient(app)
|
|
5 |
|
6 |
def test_crawl_endpoint():
|
7 |
response = client.post(
|
8 |
-
"/crawl/",
|
9 |
json={"url": "https://example.com"}
|
10 |
)
|
11 |
assert response.status_code == 200
|
@@ -13,7 +13,7 @@ def test_crawl_endpoint():
|
|
13 |
|
14 |
def test_problems_endpoint():
|
15 |
response = client.post(
|
16 |
-
"/problems/",
|
17 |
json={"user_query": "test query"}
|
18 |
)
|
19 |
assert response.status_code == 200
|
|
|
5 |
|
6 |
def test_crawl_endpoint():
|
7 |
response = client.post(
|
8 |
+
"/api/crawl/",
|
9 |
json={"url": "https://example.com"}
|
10 |
)
|
11 |
assert response.status_code == 200
|
|
|
13 |
|
14 |
def test_problems_endpoint():
|
15 |
response = client.post(
|
16 |
+
"/api/problems/",
|
17 |
json={"user_query": "test query"}
|
18 |
)
|
19 |
assert response.status_code == 200
|