From e3de148897a58c9ddf63c94475d6541fdb2863bf Mon Sep 17 00:00:00 2001 From: Kros Dai Date: Tue, 6 Oct 2026 21:10:59 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(region):=20run=20timezone=20te?= =?UTF-8?q?sts=20when=20invoked=20directly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - :white_check_mark: the new class sat below `unittest.main()`, so running the file directly exited before defining it; suite discovery still found it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SdXqTwm63rRMwotZ1xqLC8 --- test/unit/test_region.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/unit/test_region.py b/test/unit/test_region.py index 3beae82..c6f100e 100644 --- a/test/unit/test_region.py +++ b/test/unit/test_region.py @@ -251,9 +251,6 @@ done self.assertFalse((self.root / "release").exists()) -if __name__ == "__main__": - unittest.main() - class ConfiguratorRegionTimezoneTest(unittest.TestCase): """The configurator hands the ISO's regional timezone to the setup form.""" @@ -284,3 +281,7 @@ class ConfiguratorRegionTimezoneTest(unittest.TestCase): def test_user_form_passes_it_to_the_timezone_prompt(self): self.assertIn('omarchy_prompt_timezone "$(region_timezone)"', self.configurator) + + +if __name__ == "__main__": + unittest.main()