Skip to content

TST: Use pytest instead of nose #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install:
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda create -q -n test-environment python=$PYTHON pandas=$PANDAS nose coverage setuptools html5lib lxml
- conda create -q -n test-environment python=$PYTHON pandas=$PANDAS nose coverage setuptools html5lib lxml pytest pytest-cov
Copy link
Contributor

@jreback jreback May 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove nose, unless it is needed for other things)?

Copy link
Contributor Author

@gfyoung gfyoung May 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet. Got a bunch nose.SkipTest things to remove. I just wanted to make sure that initial groundwork (i.e. using pytest) works. Then we can remove nose things.

- source activate test-environment
- pip install beautifulsoup4
- if [[ "$PYTHON" == "2.6" ]]; then
Expand All @@ -42,7 +42,7 @@ install:

script:
- export ENIGMA_API_KEY=$ENIGMA_API_KEY
- nosetests -v --with-coverage --cover-package=pandas_datareader
- pytest -s --cov=pandas_datareader --cov-report xml:/tmp/cov-datareader.xml --junitxml=/tmp/datareader.xml
- flake8 --version
- flake8 --ignore E501 pandas_datareader

Expand Down