From 1f4bfa854be9678f565bb70830fdd9db91acf8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 15 Feb 2019 18:52:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Switching=20from=20nose=20to=20p?= =?UTF-8?q?ytest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- setup.py | 2 +- tox.ini | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d91ffde6e..a6a7bcce7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ python: install: - pip install -e .[develop] script: -- test -n "$RUN_FLAKE8" || nosetests --with-doctest +- test -n "$RUN_FLAKE8" || pytest src tests --doctest-modules - test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401 src/ tests setup.py sudo: false git: diff --git a/setup.py b/setup.py index e1b79b9bb..7e03a8ddf 100644 --- a/setup.py +++ b/setup.py @@ -79,7 +79,7 @@ EXTRA_REQUIRES = dict( develop=[ # Testing dependencies "mock>=2.0.0,<3", - "nose>=1.3.7,<1.4", + "pytest>=4.2.1,<5.0", "ddt", # linter diff --git a/tox.ini b/tox.ini index a4432a09b..dbd0497c9 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,9 @@ envlist = py27,py37,flake8 passenv = APPDATA deps = mock>=2.0.0,<3 - nose>=1.3.7,<1.4 + pytest>=4.2.1,<5.0 ddt -commands = nosetests --with-doctest [] +commands = pytest src tests --doctest-modules [] [testenv:flake8] basepython = python3