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

CI broken: pytest raises "fixture applied more than once" #66

Closed
delgadom opened this issue May 20, 2020 · 0 comments · Fixed by #67
Closed

CI broken: pytest raises "fixture applied more than once" #66

delgadom opened this issue May 20, 2020 · 0 comments · Fixed by #67

Comments

@delgadom
Copy link
Member

Tests are failing on master: https://travis-ci.org/github/RhodiumGroup/rhg_compute_tools/jobs/672710341#L2716

This was originally discovered in @dpa9694's PR #65.

Looks like this is related: pytest-dev/pytest#3518

Pytest seems to be wrapping fixtures multiple times when they are declared in testing modules, and recent versions of pytest prevent fixture re-wrapping, and therefore all fixture declarations must be moved to separate (non-testing) modules, e.g. tests/fixtures.py.

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 a pull request may close this issue.

1 participant