laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/37821?usp=email )
(
9 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: tests: move unittests into a sub directory ......................................................................
tests: move unittests into a sub directory
We currently mix the unit-tests with the shell script based integration tests. Let's put them into a dedicated sub directory.
Related: OS#6531 Change-Id: I0978c5353d0d479a050bbb6e7ae5a63db5e08d24 --- M contrib/jenkins.sh R tests/unittests/test_apdu.py R tests/unittests/test_construct.py R tests/unittests/test_esim.py R tests/unittests/test_esim_bsp.py R tests/unittests/test_esim_saip.py R tests/unittests/test_euicc.py R tests/unittests/test_files.py R tests/unittests/test_globalplatform.py R tests/unittests/test_ota.py R tests/unittests/test_sms.py R tests/unittests/test_tlv.py R tests/unittests/test_tlvs.py R tests/unittests/test_utils.py 14 files changed, 2 insertions(+), 2 deletions(-)
Approvals: laforge: Looks good to me, approved fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index 16ab1c4..3dabdd7 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -27,7 +27,7 @@ pip install pyshark
# Execute automatically discovered unit tests first - python -m unittest discover -v -s tests/ + python -m unittest discover -v -s tests/unittests
# Run the test with physical cards cd pysim-testdata @@ -58,7 +58,7 @@ --disable E1102 \ --disable E0401 \ --enable W0301 \ - pySim tests/*.py *.py \ + pySim tests/unittests/*.py *.py \ contrib/*.py ;; "docs") diff --git a/tests/test_apdu.py b/tests/unittests/test_apdu.py similarity index 100% rename from tests/test_apdu.py rename to tests/unittests/test_apdu.py diff --git a/tests/test_construct.py b/tests/unittests/test_construct.py similarity index 100% rename from tests/test_construct.py rename to tests/unittests/test_construct.py diff --git a/tests/test_esim.py b/tests/unittests/test_esim.py similarity index 100% rename from tests/test_esim.py rename to tests/unittests/test_esim.py diff --git a/tests/test_esim_bsp.py b/tests/unittests/test_esim_bsp.py similarity index 100% rename from tests/test_esim_bsp.py rename to tests/unittests/test_esim_bsp.py diff --git a/tests/test_esim_saip.py b/tests/unittests/test_esim_saip.py similarity index 100% rename from tests/test_esim_saip.py rename to tests/unittests/test_esim_saip.py diff --git a/tests/test_euicc.py b/tests/unittests/test_euicc.py similarity index 100% rename from tests/test_euicc.py rename to tests/unittests/test_euicc.py diff --git a/tests/test_files.py b/tests/unittests/test_files.py similarity index 100% rename from tests/test_files.py rename to tests/unittests/test_files.py diff --git a/tests/test_globalplatform.py b/tests/unittests/test_globalplatform.py similarity index 100% rename from tests/test_globalplatform.py rename to tests/unittests/test_globalplatform.py diff --git a/tests/test_ota.py b/tests/unittests/test_ota.py similarity index 100% rename from tests/test_ota.py rename to tests/unittests/test_ota.py diff --git a/tests/test_sms.py b/tests/unittests/test_sms.py similarity index 100% rename from tests/test_sms.py rename to tests/unittests/test_sms.py diff --git a/tests/test_tlv.py b/tests/unittests/test_tlv.py similarity index 100% rename from tests/test_tlv.py rename to tests/unittests/test_tlv.py diff --git a/tests/test_tlvs.py b/tests/unittests/test_tlvs.py similarity index 100% rename from tests/test_tlvs.py rename to tests/unittests/test_tlvs.py diff --git a/tests/test_utils.py b/tests/unittests/test_utils.py similarity index 100% rename from tests/test_utils.py rename to tests/unittests/test_utils.py