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>
| Changeset | b1251054cd58c0c4f6faac2bbb80490159c89513 |
|---|---|
| Author (claimed) | Timo Stolz <timo.stolz@nullachtvierzehn.de>, |
| Parents | a7d76ada3cdd |
| Children | 8990a946f8e2 |
| Pushlog | by timo via ssh by timo via ssh |
modified tests/test_notation.py +4 −4
| @@ -33,10 +33,6 @@ class NotationTest(unittest.TestCase): | ||
| 33 | 33 | self.assertEqual(notation.text(sentence, "en"), sentence) |
| 34 | 34 | |
| 35 | 35 | |
| 36 | -if __name__ == "__main__": | |
| 37 | - unittest.main() | |
| 38 | - | |
| 39 | - | |
| 40 | 36 | class ClockPartsTest(unittest.TestCase): |
| 41 | 37 | def test_parts(self): |
| 42 | 38 | from schach.board import clock_parts |
| @@ -46,3 +42,7 @@ class ClockPartsTest(unittest.TestCase): | ||
| 46 | 42 | self.assertEqual(clock_parts(19450), ("0", "19.4")) |
| 47 | 43 | self.assertEqual(clock_parts(3723000), ("1:02", "03")) |
| 48 | 44 | self.assertEqual(clock_parts(-5), ("0", "00.0")) |
| 45 | + | |
| 46 | + | |
| 47 | +if __name__ == "__main__": | |
| 48 | + unittest.main() | |