Skip to content

Commit 87a2dee

Browse files
artofhumanaleneum
authored andcommitted
Migrate to pytest
1 parent 2c1223a commit 87a2dee

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ python:
66
- "3.6"
77
- "3.7"
88
install:
9-
- pip install python-coveralls coverage
9+
- pip install python-coveralls
1010
- pip install -r requirements.txt
1111
- pip install -r requirements_diagrams.txt
1212
- pip install -r requirements_test.txt
13-
script: nosetests --with-coverage --with-doctest
13+
script: pytest --doctest-modules --cov transitions/
1414
after_success:
1515
- coveralls --config_file .coveragerc
1616
addons:

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020
build: off
2121

2222
test_script:
23-
- "%PYTHON%\\python.exe -m nose --with-coverage --with-doctest"
23+
- "%PYTHON%\\python.exe -m pytest --doctest-modules --cov transitions/"
2424

2525
#after_test:
2626
# # This step builds your wheels.
@@ -36,4 +36,4 @@ test_script:
3636
#on_success:
3737
# You can use this step to upload your artifacts to a public website.
3838
# See Appveyor's documentation for more details. Or you can simply
39-
# access your wheels from the Appveyor "artifacts" tab for your build.
39+
# access your wheels from the Appveyor "artifacts" tab for your build.

requirements_test.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
nose
1+
pytest
2+
pytest-cov
23
mock
34
dill
45
graphviz

setup.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@
1818

1919
extra_setuptools_args = {}
2020
if 'setuptools' in sys.modules:
21-
extras_require['test'] = ['nose>=0.10.1']
22-
tests_require.append('nose')
23-
extra_setuptools_args = dict(
24-
test_suite='nose.collector',
25-
)
21+
extras_require['test'] = ['pytest']
22+
tests_require.append('pytest')
2623

2724
setup(
2825
name="transitions",

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ skip_missing_interpreters = True
66
deps = -rrequirements.txt
77
-rrequirements_diagrams.txt
88
-rrequirements_test.txt
9-
commands = nosetests
9+
commands = pytest
1010

1111
[testenv:codestyle]
1212
deps = pycodestyle

0 commit comments

Comments
 (0)