Skip to content

Commit ae6f599

Browse files
committed
Add more tests
1 parent ef4b3ec commit ae6f599

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/test_projects.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ def test_import_sync() -> None:
131131
else:
132132
assert proj.import_zip(asynchronous=False).startswith("FAILED")
133133

134+
def test_import_no_zip(get_test_project: Generator[projects.Project]) -> None:
135+
"""test_import_no_zip"""
136+
if tutil.SQ.edition() == c.CE:
137+
pytest.skip("No zip import in Community Build")
138+
assert get_test_project.import_zip(asynchronous=False) == f"FAILED/ZIP_MISSING"
139+
get_test_project.key = "non-existing"
140+
res = get_test_project.import_zip(asynchronous=False)
141+
assert res.startsWith("FAILED/") and "not found" in res
134142

135143
def test_monorepo() -> None:
136144
"""test_monorepo"""

0 commit comments

Comments
 (0)