Skip to content

Commit 77af23c

Browse files
committed
improving test multiple mains
1 parent fb08a9b commit 77af23c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/test_inspect4py.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,11 @@ def test_multiple_mains(self):
344344
source_code, license_detection, readme, metadata)
345345
imports = dir_info['software_invocation']
346346
shutil.rmtree(output_dir)
347-
assert len(imports[0]["imports"]) == 2
347+
for i in imports:
348+
if "test.py" in i['run']:
349+
num_imports = len (i['imports'])
350+
break
351+
assert num_imports == 2
348352

349353

350354

0 commit comments

Comments
 (0)