File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11hacking<3 # Apache-2.0
2- nose==1.3.7 # LGPL
3- nose -timer>=0.6. 0,<1 # MIT
2+ pytest>=8.0.0,<9.0.0 # MIT License (MIT)
3+ pytest -timer>=1.0. 0,<2.0.0 # MIT License (MIT)
44coverage>=3.6,<6 # Apache-2.0
55mock>=1.0.1,<3.0.5 # BSD
Original file line number Diff line number Diff line change @@ -13,14 +13,15 @@ project_name = httpetcd
1313[testenv]
1414setenv =
1515 PYTHONDONTWRITEBYTECODE = 1
16- TEST_PATH ={[base]project_name}.tests.unit
17- functional: TEST_PATH ={[base]project_name}.tests.functional
16+ PACKAGE_NAME =httpetcd
17+ TEST_PATH ={[base]project_name}/tests/unit
18+ functional: TEST_PATH ={[base]project_name}/tests/functional
1819passenv = CI_*
1920 functional: ETCD_ENDPOINT
2021deps = -r{toxinidir}/requirements.txt
2122 -r{toxinidir}/test-requirements.txt
2223commands =
23- coverage run -p --source {toxinidir}/{[base]project_name} -m nose {posargs} {env:TEST_PATH} --with- timer --with-xunit
24+ coverage run -p -m pytest {posargs} -- timer-top-n =10 {env:TEST_PATH}
2425
2526[testenv:pep8]
2627deps = hacking<3
@@ -49,7 +50,7 @@ basepython = python3
4950envdir = {toxworkdir}/cover
5051commands =
5152 coverage erase
52- coverage run -m nose {posargs} {[base]project_name}.tests.unit
53+ coverage run -m pytest {posargs} {[base]project_name}.tests.unit
5354 coverage html -d cover
5455 coverage report --skip-covered
5556
You can’t perform that action at this time.
0 commit comments