Skip to content

Commit e7656d4

Browse files
committed
Adding a diff to see what is different in module file
1 parent 301cae5 commit e7656d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/units/test_add.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,15 @@ def mock_update_galaxy_dependency() -> None:
550550
expected_file = tmp_path / expected_file_path
551551
effective_file = FIXTURES_DIR / "collection" / "testorg" / "testcol" / expected_file_path
552552
cmp_result = cmp(expected_file, effective_file, shallow=False)
553+
if not cmp_result:
554+
diff = subprocess.run(
555+
f"diff -u {expected_file} {effective_file}",
556+
shell=True,
557+
capture_output=True,
558+
text=True,
559+
check=False,
560+
)
561+
assert False, f"Files are different:\n{diff.stdout}" # noqa: B011, PT015
553562
assert cmp_result
554563

555564
# Test conflict handling

0 commit comments

Comments
 (0)