Replace nose with pytest (see: #997758).

This commit is contained in:
Stefano Rivera 2021-10-24 15:57:27 -07:00
parent 9360b17bcb
commit a9e2a2689d
6 changed files with 15 additions and 8 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.186) UNRELEASED; urgency=medium
* Replace nose with pytest (see: #997758).
-- Stefano Rivera <stefanor@debian.org> Sun, 24 Oct 2021 15:57:04 -0700
ubuntu-dev-tools (0.185) unstable; urgency=medium
[ Alex Murray ]

2
debian/control vendored
View File

@ -22,7 +22,7 @@ Build-Depends:
python3-distro-info,
python3-httplib2,
python3-launchpadlib,
python3-nose,
python3-pytest,
python3-requests <!nocheck>,
python3-setuptools,
Standards-Version: 4.6.0

2
debian/rules vendored
View File

@ -8,7 +8,7 @@ override_dh_auto_clean:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
flake8 -v --max-line-length=99
nosetests3 -v ubuntutools
python3 -m pytest -v ubuntutools
endif
%:

View File

@ -3,10 +3,10 @@ Depends:
flake8,
Restrictions: allow-stderr
Test-Command: nosetests3 -v ubuntutools
Test-Command: python3 -m pytest -v ubuntutools
Depends:
dh-make,
python3-nose,
python3-pytest,
python3-setuptools,
@,
Restrictions: allow-stderr

View File

@ -1,3 +1,4 @@
coverage
flake8 >= 3.8.0
nose
pytest
pytest-cov

View File

@ -1,5 +1,5 @@
[tox]
envlist = flake8,nose
envlist = flake8,pytest
skipsdist = True
[testenv]
@ -14,8 +14,8 @@ install_command = pip install {opts} {packages}
[testenv:flake8]
commands = flake8 {posargs}
[testenv:nose]
commands = nosetests -v --with-coverage --cover-package=ubuntutools {posargs:ubuntutools}
[testenv:pytest]
commands = pytest -v --cov=ubuntutools {posargs:ubuntutools}
[flake8]
verbose = 2