laforge has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/37142?usp=email )
Change subject: tests/ota_test.py: Allow stand-alone execution
......................................................................
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
---
M tests/test_ota.py
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/42/37142/1
diff --git a/tests/test_ota.py b/tests/test_ota.py
index c4598a3..f75ba8d 100644
--- a/tests/test_ota.py
+++ b/tests/test_ota.py
@@ -299,3 +299,6 @@
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()
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/37142?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic3940ac23c7ddc1013e21f41eae6076a11dfd4f4
Gerrit-Change-Number: 37142
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange