mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
Replace nose with pytest (see: #997758).
This commit is contained in:
parent
9360b17bcb
commit
a9e2a2689d
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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
2
debian/control
vendored
@ -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
2
debian/rules
vendored
@ -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
|
||||
|
||||
%:
|
||||
|
4
debian/tests/control
vendored
4
debian/tests/control
vendored
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
coverage
|
||||
flake8 >= 3.8.0
|
||||
nose
|
||||
pytest
|
||||
pytest-cov
|
||||
|
6
tox.ini
6
tox.ini
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user