Skip to content
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

pytest 4 does not want us to call fixture functions #22

Merged
merged 1 commit into from
Nov 15, 2018

Conversation

sjaensch
Copy link
Owner

Tests started failing with pytest 4 due to us calling fixture functions from code. I'm not sure why that's not ok to do so, I guess we'll have to make the fixture function a wrapper around the real thing.

@sjaensch sjaensch requested a review from macisamuele November 15, 2018 09:57
Copy link
Collaborator

@macisamuele macisamuele left a comment

Choose a reason for hiding this comment

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

Surprising behaviour from pytest.
If that is what is needed to make tests green then I'm cool with it :)

🚢

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 98.723% when pulling 58d672f on fix_pytest4_compatibility into 51b91c0 on master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 98.723% when pulling 58d672f on fix_pytest4_compatibility into 51b91c0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 98.723% when pulling 58d672f on fix_pytest4_compatibility into 51b91c0 on master.

@sjaensch
Copy link
Owner Author

sjaensch commented Nov 15, 2018

Yep this is what the maintainers want us to do: pytest-dev/pytest#3950

@sjaensch sjaensch merged commit 2308448 into master Nov 15, 2018
@sjaensch sjaensch deleted the fix_pytest4_compatibility branch November 15, 2018 10:18
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.

3 participants