We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 777b2ff commit b08d661Copy full SHA for b08d661
test_main.py
@@ -18,7 +18,12 @@ def test_root():
18
def test_list_files():
19
response = client.get(f"/list-files/?owner={OWNER}&repo={REPO}&path={TEST_PATH}&branch={BRANCH}")
20
assert response.status_code == 200
21
- assert isinstance(response.json(), list)
+
22
+ data = response.json()
23
+ assert isinstance(data, dict)
24
+ assert "files" in data
25
+ assert isinstance(data["files"], list)
26
27
28
def test_scan_repo():
29
payload = {
0 commit comments