Public repository: timo / schach

Reader

Ein aufgeräumtes Schach-Programm für GNOME

test: keep main guard at end of notation tests

public

test: keep main guard at end of notation tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changesetb1251054cd58c0c4f6faac2bbb80490159c89513
Author (claimed)Timo Stolz <timo.stolz@nullachtvierzehn.de>,
Parentsa7d76ada3cdd
Children8990a946f8e2
Pushlog
by timo via ssh
by timo via ssh

modified tests/test_notation.py +4 −4

@@ -33,10 +33,6 @@ class NotationTest(unittest.TestCase):
3333
         self.assertEqual(notation.text(sentence, "en"), sentence)
3434
 
3535
 
36
-if __name__ == "__main__":
37
-    unittest.main()
38
-
39
-
4036
 class ClockPartsTest(unittest.TestCase):
4137
     def test_parts(self):
4238
         from schach.board import clock_parts
@@ -46,3 +42,7 @@ class ClockPartsTest(unittest.TestCase):
4642
         self.assertEqual(clock_parts(19450), ("0", "19.4"))
4743
         self.assertEqual(clock_parts(3723000), ("1:02", "03"))
4844
         self.assertEqual(clock_parts(-5), ("0", "00.0"))
45
+
46
+
47
+if __name__ == "__main__":
48
+    unittest.main()