From 38052ffa8e82bd690a1a620572b6b5a06f202f7e Mon Sep 17 00:00:00 2001 From: Alex Badea Date: Sat, 8 May 2021 00:26:40 -0700 Subject: [PATCH] crypto-test: run tests with pytest No changes required to the actual test source, pytest groks unittest API. --- docker/crypto-test/Dockerfile | 2 +- requirements-crypto-test.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/crypto-test/Dockerfile b/docker/crypto-test/Dockerfile index 122ffa7..988a680 100644 --- a/docker/crypto-test/Dockerfile +++ b/docker/crypto-test/Dockerfile @@ -11,4 +11,4 @@ ADD docker/crypto-test/gen_testdata.sh . RUN ./gen_testdata.sh ADD ro_help/mobilpay mobilpay/ -RUN python3 -m mobilpay.mobilpay.test -v +RUN pytest mobilpay/mobilpay/test.py -v diff --git a/requirements-crypto-test.txt b/requirements-crypto-test.txt index 928a148..00bc942 100644 --- a/requirements-crypto-test.txt +++ b/requirements-crypto-test.txt @@ -1,2 +1,3 @@ -r requirements-crypto.txt requests==2.23.0 +pytest==5.4.1