run tests with pytest

This commit is contained in:
pgajdos 2020-10-23 11:45:28 +02:00
parent ec3c3dd89e
commit fdf14b4ab3
3 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ env:
before_install:
- pip install --upgrade pip
- pip install --upgrade setuptools wheel nose coverage codecov
- pip install --upgrade setuptools wheel pytest pytest-cov coverage codecov
- nvm install 6.9.2
- nvm use 6.9.2
- node --version
@ -65,7 +65,7 @@ script:
true
fi
- 'if [[ $GROUP == js* ]]; then travis_retry python -m notebook.jstest ${GROUP:3}; fi'
- 'if [[ $GROUP == python ]]; then nosetests -v --exclude-dir notebook/tests/selenium --with-coverage --cover-package=notebook notebook; fi'
- 'if [[ $GROUP == python ]]; then py.test -v --ignore notebook/tests/selenium --cov=notebook notebook; fi'
- 'if [[ $GROUP == selenium ]]; then py.test -sv notebook/tests/selenium; fi'
- |
if [[ $GROUP == docs ]]; then

View File

@ -21,7 +21,7 @@ install:
- cmd: conda config --set show_channel_urls true
- cmd: conda config --add channels conda-forge
#- cmd: conda update --yes --quiet conda
- cmd: conda install -y python=%CONDA_PY_SPEC% pyzmq tornado jupyter_client nbformat ipykernel pip nodejs nose
- cmd: conda install -y python=%CONDA_PY_SPEC% pyzmq tornado jupyter_client nbformat ipykernel pip nodejs pytest
# not using `conda install -y` on nbconvent package because there is
# currently a bug with the version that the anaconda installs, so we will just install it with pip
- cmd: pip install nbconvert
@ -29,4 +29,4 @@ install:
- cmd: pip install .[test]
test_script:
- nosetests -v notebook --exclude-dir notebook\tests\selenium
- pytest -v notebook --exclude-dir notebook\tests\selenium

View File

@ -115,8 +115,8 @@ for more information.
'prometheus_client'
],
extras_require = {
'test': ['nose', 'coverage', 'requests', 'nose_warnings_filters',
'nbval', 'nose-exclude', 'selenium', 'pytest', 'pytest-cov'],
'test': ['pytest', 'coverage', 'requests',
'nbval', 'selenium', 'pytest', 'pytest-cov'],
'docs': ['sphinx', 'nbsphinx', 'sphinxcontrib_github_alt', 'sphinx_rtd_theme'],
'test:sys_platform != "win32"': ['requests-unixsocket'],
'json-logging': ['json-logging']