Skip to content

Commit 68ab4b1

Browse files
Merge pull request #392 from SoftwareUnderstanding/dev
improving test multiple mains
2 parents 8ea93dc + 77af23c commit 68ab4b1

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)