From 1aa77c5d7457fdb2313d9824c1cced08517427e1 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 9 Jun 2024 16:20:15 +0200 Subject: [PATCH] tests/ota_test.py: Allow stand-alone execution Let's add a __main__ section to allow stand-alone execution via python3 ./tests/test_ota.py Change-Id: Ic3940ac23c7ddc1013e21f41eae6076a11dfd4f4 --- tests/test_ota.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_ota.py b/tests/test_ota.py index c4598a3e..f75ba8d3 100644 --- a/tests/test_ota.py +++ b/tests/test_ota.py @@ -299,3 +299,6 @@ class SmsOtaTestCase(OtaTestCase): self.assertEqual(d.number_of_commands, t['response']['number_of_commands']) self.assertEqual(d.last_status_word, t['response']['last_status_word']) self.assertEqual(d.last_response_data, t['response']['last_response_data']) + +if __name__ == "__main__": + unittest.main()