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

Fix use of experiment fixture #4912

Merged
merged 2 commits into from
Jan 9, 2023

Conversation

jenshnielsen
Copy link
Collaborator

One test was missing the fixture causing it to write to the default db
The other tests were incorrectly using mark on fixtures which is not supported. This was partially fixed
by applying the experiment fixture again to the test but that would result in the wrong order

Discovered as part of #4899 and #4906

@codecov
Copy link

codecov bot commented Jan 9, 2023

Codecov Report

Merging #4912 (f27a15f) into master (662ae6e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4912   +/-   ##
=======================================
  Coverage   68.31%   68.31%           
=======================================
  Files         340      340           
  Lines       32239    32239           
=======================================
  Hits        22025    22025           
  Misses      10214    10214           

Copy link
Contributor

@Dominik-Vogel Dominik-Vogel left a comment

Choose a reason for hiding this comment

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

Thank you for teaching us abut this 'bug' with usefixture!

@jenshnielsen jenshnielsen merged commit 49a7c52 into microsoft:master Jan 9, 2023
@jenshnielsen jenshnielsen deleted the fix_test_fixtures branch January 9, 2023 12:32
@jenshnielsen
Copy link
Collaborator Author

For reference pytest-dev/pytest#3664

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