Skip to content

Commit

Permalink
fixup! Make it possible to handle all *.rpmnew files in a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sandakov committed Mar 1, 2024
1 parent d00ba5f commit 1c7315e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/rpmtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def test_handle_whole_directory(self):
result = rpm.handle_all_rpmnew_files("test")

for file, content in expected_files.items():
self.assertTrue(file in result)
# since test3.txt was not substituted, it should not be in the result
if file != "test3.txt":
self.assertTrue(file in result)

self.assertTrue(os.path.exists(f"test/{file}"))
self.assertEqual(open(f"test/{file}").read(), content)

Expand Down

0 comments on commit 1c7315e

Please sign in to comment.