aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Eugene Aumson <feuGeneA@users.noreply.github.com>2018-12-20 07:18:44 +0800
committerGitHub <noreply@github.com>2018-12-20 07:18:44 +0800
commitace968a4fc5281d6688ac6de931a46728455c693 (patch)
tree4f4ca19509344b51b4ea80174e21a74267f5f6c8
parent97e21106e5a96809e6298999b93833c4645dffba (diff)
downloaddexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.tar
dexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.tar.gz
dexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.tar.bz2
dexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.tar.lz
dexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.tar.xz
dexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.tar.zst
dexon-sol-tools-ace968a4fc5281d6688ac6de931a46728455c693.zip
feat(sra_client.py): Test deployed pkg via tox
-rw-r--r--python-packages/sra_client/tox.ini14
1 files changed, 14 insertions, 0 deletions
diff --git a/python-packages/sra_client/tox.ini b/python-packages/sra_client/tox.ini
index 3d0be613c..69d59f4ff 100644
--- a/python-packages/sra_client/tox.ini
+++ b/python-packages/sra_client/tox.ini
@@ -8,3 +8,17 @@ deps=-r{toxinidir}/requirements.txt
commands=
nosetests \
[]
+
+[testenv:run_tests_against_test_deployment]
+commands =
+ # install dependencies from real PyPI
+ pip install mypy_extensions pytest
+ # install package-under-test from test PyPI
+ pip install --index-url https://test.pypi.org/legacy/ 0x-sra-client
+ pytest test
+
+[testenv:run_tests_against_deployment]
+deps=pytest
+commands =
+ pip install 0x-sra-client
+ pytest test