OnyxlMunkey commited on
Commit
bd0cdc2
·
1 Parent(s): 0e0c9f1

feat: add API tests for health check and agent generation endpoints

Browse files
Files changed (2) hide show
  1. test_output_v7.txt +0 -0
  2. 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 os.path.exists(data["path"])
25
-
26
- # Cleanup
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
+