From 3719de71b164abb6b70d8046ccb118a76b1fbd2d Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 16 Oct 2026 15:48:49 +0200 Subject: [PATCH] fix: run the export count tests under main --- tests/test_export_counts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_export_counts.py b/tests/test_export_counts.py index 25ce79c6..d23498fd 100644 --- a/tests/test_export_counts.py +++ b/tests/test_export_counts.py @@ -590,10 +590,6 @@ class BatoceraKeepsTheRunnerKeys(unittest.TestCase): self.assertEqual(parsed["biosFiles"][0]["md5"], B) -if __name__ == "__main__": - unittest.main() - - class SummaryCountsWhatTheTruthRewrites(unittest.TestCase): """A size and a dropped hash are in the diff, so they are counted.""" @@ -623,3 +619,7 @@ class SummaryCountsWhatTheTruthRewrites(unittest.TestCase): entry = self._entry() changes = landed_changes(Batocera(), {"neocd": NativeSystem("neocd", files=[entry])}) self.assertEqual((changes.resized, changes.cleared), ([], [])) + + +if __name__ == "__main__": + unittest.main()