mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 22:08:56 -06:00
feat: catch patch.object on a command
This commit is contained in:
1 parent
e0f4d7eba5
commit
c3054bef4c
5 files changed
+13
-7
No files matched your search
@@ -470,7 +470,7 @@ class TheReleaseNotesThankPeople(unittest.TestCase):
|
||||
"--platforms-dir", PLATFORMS, "--output", str(tmp / "notes.md")]
|
||||
with mock.patch.object(sys, "argv", argv), \
|
||||
mock.patch.object(notes, "_run", self.fake), \
|
||||
mock.patch.object(release_notes, "gather_thanks",
|
||||
mock.patch.object(notes, "gather_thanks",
|
||||
side_effect=AssertionError("gh read")), \
|
||||
contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertEqual(release_notes.main(), 0)
|
||||
|
||||
Reference in new issue
Block a user