Skip to content

Commit 448c0a8

Browse files
committed
attempt to replace nose with pytest
1 parent 4a7465c commit 448c0a8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ jobs:
339339
command: |
340340
cd packages/python/plotly
341341
locale
342-
tox -e py37-core -- -a '!nodev'
342+
tox -e py37-core -- -k 'not nodev'
343343
no_output_timeout: 20m
344344
- run:
345345
name: Commit

packages/python/plotly/tox.ini

+12-12
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,25 @@ deps=
8181
basepython={env:PLOTLY_TOX_PYTHON_27:}
8282
commands=
8383
python --version
84-
nosetests {posargs} -x plotly/tests/test_core
84+
pytest {posargs} -x plotly/tests/test_core
8585

8686
[testenv:py35-core]
8787
basepython={env:PLOTLY_TOX_PYTHON_35:}
8888
commands=
8989
python --version
90-
nosetests {posargs} -x plotly/tests/test_core
90+
pytest {posargs} -x plotly/tests/test_core
9191

9292
[testenv:py36-core]
9393
basepython={env:PLOTLY_TOX_PYTHON_36:}
9494
commands=
9595
python --version
96-
nosetests {posargs} -x plotly/tests/test_core
96+
pytest {posargs} -x plotly/tests/test_core
9797

9898
[testenv:py37-core]
9999
basepython={env:PLOTLY_TOX_PYTHON_37:}
100100
commands=
101101
python --version
102-
nosetests {posargs} -x plotly/tests/test_core
102+
pytest {posargs} -x plotly/tests/test_core
103103

104104
; OPTIONAL ENVIRONMENTS
105105
;[testenv:py27-optional]
@@ -116,34 +116,34 @@ commands=
116116
basepython={env:PLOTLY_TOX_PYTHON_27:}
117117
commands=
118118
python --version
119-
nosetests {posargs} -x plotly/tests/test_core
120-
nosetests {posargs} -x plotly/tests/test_optional
119+
pytest {posargs} -x plotly/tests/test_core
120+
pytest {posargs} -x plotly/tests/test_optional
121121
pytest _plotly_utils/tests/
122122
pytest plotly/tests/test_io
123123

124124
[testenv:py35-optional]
125125
basepython={env:PLOTLY_TOX_PYTHON_35:}
126126
commands=
127127
python --version
128-
nosetests {posargs} -x plotly/tests/test_core
129-
nosetests {posargs} -x plotly/tests/test_optional
128+
pytest {posargs} -x plotly/tests/test_core
129+
pytest {posargs} -x plotly/tests/test_optional
130130
pytest _plotly_utils/tests/
131131
pytest plotly/tests/test_io
132132

133133
[testenv:py36-optional]
134134
basepython={env:PLOTLY_TOX_PYTHON_36:}
135135
commands=
136136
python --version
137-
nosetests {posargs} -x plotly/tests/test_core
138-
nosetests {posargs} -x plotly/tests/test_optional
137+
pytest {posargs} -x plotly/tests/test_core
138+
pytest {posargs} -x plotly/tests/test_optional
139139
pytest _plotly_utils/tests/
140140
pytest plotly/tests/test_io
141141

142142
[testenv:py37-optional]
143143
basepython={env:PLOTLY_TOX_PYTHON_37:}
144144
commands=
145145
python --version
146-
nosetests {posargs} -x plotly/tests/test_core
147-
nosetests {posargs} -x plotly/tests/test_optional
146+
pytest {posargs} -x plotly/tests/test_core
147+
pytest {posargs} -x plotly/tests/test_optional
148148
pytest _plotly_utils/tests/
149149
pytest plotly/tests/test_io

0 commit comments

Comments
 (0)