diff --git a/tests/test_diceware.py b/tests/test_diceware.py index 956877860e5154483cf11c9a2fef1691a283fcab..dedbe7617a0c12cffb0354e9ef34ab7c32124676 100644 --- a/tests/test_diceware.py +++ b/tests/test_diceware.py @@ -251,6 +251,7 @@ class TestDicewareModule(object): assert err == '' assert __version__ in out + @pytest.mark.packaging def test_print_version_current_year(self, capsys): # in version infos we display the current year print_version() diff --git a/tests/test_manpage.py b/tests/test_manpage.py index acb4a4ceeabda02910b2214cbf350184d4ed40c3..9982718928950e6fe3db34458c0d73e6c96e1815 100644 --- a/tests/test_manpage.py +++ b/tests/test_manpage.py @@ -17,6 +17,7 @@ def manpage(request): class TestManpage(object): + @pytest.mark.packaging def test_manpage_contains_current_year(self, manpage): # the current year appears at least in the manpage assert str(datetime.datetime.now().year) in manpage diff --git a/tox.ini b/tox.ini index 06a7bca5ee7dabf94495faf231087d85362f7ca4..86a5899ba0008c3f9b0a89014447013f36bba426 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,9 @@ [pytest] -addopts = --doctest-modules --doctest-glob='*.rst' +addopts = --doctest-modules --doctest-glob='*.rst' -m 'not packaging' diceware tests docs README.rst [tox] -envlist = flake8, pypy, py26, py27, py33, py34, py35, py36, coverage +envlist = flake8, pypy, py26, py27, py33, py34, py35, py36, coverage, pkg [testenv] usedevelop=True @@ -35,3 +35,10 @@ commands= coverage erase coverage run setup.py test coverage report --include='diceware*,setup.py' -m --fail-under=100 + +[testenv:pkg] +# run only tests marked as 'packaging'-related +deps= + pytest==3.2.5 +commands= + py.test -m 'packaging'