Spaces:
Sleeping
Sleeping
Commit
·
bd0cdc2
1
Parent(s):
0e0c9f1
feat: add API tests for health check and agent generation endpoints
Browse files- test_output_v7.txt +0 -0
- tests/test_api.py +3 -5
test_output_v7.txt
ADDED
|
File without changes
|
tests/test_api.py
CHANGED
|
@@ -21,8 +21,6 @@ def test_generate_agent():
|
|
| 21 |
data = response.json()
|
| 22 |
assert data["status"] == "success"
|
| 23 |
assert "TestApiAgent" in data["code"]
|
| 24 |
-
assert
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
if os.path.exists(data["path"]):
|
| 28 |
-
os.remove(data["path"])
|
|
|
|
| 21 |
data = response.json()
|
| 22 |
assert data["status"] == "success"
|
| 23 |
assert "TestApiAgent" in data["code"]
|
| 24 |
+
assert "filename" in data
|
| 25 |
+
assert data["filename"] == "testapiagent.py"
|
| 26 |
+
|
|
|
|
|
|