Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WIP] Pytest test suite completely independent of nose #8321

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

Closed

Conversation

HolgerPeters
Copy link
Contributor

Reference Issue

Addresses issue #7319

What does this implement/fix? Explain your changes.

With this PR I replace nosetest by py.test. Surprised how easy the port was in general.

  • replaced a few setup and teardown function with pytest style fixtures.
  • used pytest.mark.parametrize in many places that featured yield-style tests.
  • a lot of yield-style tests remain that should be fixed probably, due to the pytest deprecation warning.
  • I did not replace assert_true and assert_false, etc.

This PR is not as polished as I would normally prepare a PR to be, maybe with some feedback & help , especially with regards to the CI infrastructure, we can get it into a mergeable state.

PS: As far as I can tell, flake8 is used for style checks, I would suggest moving to https://pypi.python.org/pypi/pytest-flake8 which integrates nicely with flake8.

@HolgerPeters HolgerPeters changed the title Pytest migration [WIP] Pytest migration Feb 8, 2017
@HolgerPeters HolgerPeters mentioned this pull request Feb 9, 2017
@HolgerPeters HolgerPeters changed the title [WIP] Pytest migration [WIP] Pytest test suite completely independent of nose Feb 9, 2017
@rth rth mentioned this pull request May 7, 2018
3 tasks
@rth
Copy link
Member

rth commented May 7, 2018

This PR was continued in #11074

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants