Skip to content

Commit b08d661

Browse files
authored
Update test_main.py
1 parent 777b2ff commit b08d661

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test_main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ def test_root():
1818
def test_list_files():
1919
response = client.get(f"/list-files/?owner={OWNER}&repo={REPO}&path={TEST_PATH}&branch={BRANCH}")
2020
assert response.status_code == 200
21-
assert isinstance(response.json(), list)
21+
22+
data = response.json()
23+
assert isinstance(data, dict)
24+
assert "files" in data
25+
assert isinstance(data["files"], list)
26+
2227

2328
def test_scan_repo():
2429
payload = {

0 commit comments

Comments
 (0)