Skip to content

Commit 28d41e3

Browse files
Prevent tests from running twice
1 parent 4bbcab9 commit 28d41e3

13 files changed

+9
-31
lines changed

tests/test_graphical_about_app.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,3 @@ def test_about_app_shows_os_version(self):
171171
print("=== OS version test completed successfully ===")
172172

173173

174-
if __name__ == "__main__":
175-
# Note: This file is executed by unittest.sh which handles unittest.main()
176-
# But we include it here for completeness
177-
unittest.main()

tests/test_graphical_animation_deleted_widget.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,5 +214,3 @@ def test_multiple_animations_deleted(self):
214214
print("=== Multiple animations test PASSED ===")
215215

216216

217-
if __name__ == "__main__":
218-
unittest.main()

tests/test_graphical_custom_keyboard.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,5 +316,3 @@ def test_keyboard_with_standard_comparison(self):
316316
print("=== Comparison test PASSED ===")
317317

318318

319-
if __name__ == "__main__":
320-
unittest.main()

tests/test_graphical_custom_keyboard_basic.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,3 @@ def test_api_compatibility(self):
188188
print("API compatibility verified")
189189

190190

191-
if __name__ == "__main__":
192-
unittest.main()

tests/test_graphical_keyboard_animation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,3 @@ def test_keyboard_has_get_y_and_set_y(self):
185185
print("=== Position methods test PASSED ===")
186186

187187

188-
if __name__ == "__main__":
189-
unittest.main()

tests/test_graphical_keyboard_method_forwarding.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,3 @@ def test_method_forwarding_preserves_behavior(self):
141141
print("Method forwarding preserves behavior correctly!")
142142

143143

144-
if __name__ == "__main__":
145-
unittest.main()

tests/test_graphical_keyboard_styling.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,3 @@ def test_keyboard_buttons_not_pure_white_in_light_mode(self):
373373
print("=== Pure white test PASSED ===")
374374

375375

376-
if __name__ == "__main__":
377-
# Note: This file is executed by unittest.sh which handles unittest.main()
378-
# But we include it here for completeness
379-
unittest.main()

tests/test_graphical_start_app.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,3 @@ def test_restart_launcher(self):
6767
print("Launcher restart successful")
6868

6969

70-
if __name__ == "__main__":
71-
unittest.main()

tests/test_intent.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,5 +302,3 @@ def test_complex_extras_data(self):
302302
self.assertTrue(intent.extras["data"]["config"]["retry"])
303303

304304

305-
if __name__ == '__main__':
306-
unittest.main()

tests/test_osupdate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,5 +564,3 @@ def test_download_exact_chunk_multiple(self):
564564
self.assertEqual(result['bytes_written'], 8192)
565565

566566

567-
if __name__ == '__main__':
568-
unittest.main()

0 commit comments

Comments
 (0)