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

Better implementation of _shared_utils.results_path() - using PyTest request #5827

Merged

Conversation

trexfeathers
Copy link
Contributor

The previous implementation was flaky given we could not know where in the call stack the test actually was, and I have no idea how I could have got it working with PyTest parameters - probably something even more flaky.

This version uses publicly available attributes from the PyTest FixtureRequest, which seems much safer.

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.74%. Comparing base (fa86a4f) to head (6829c75).
Report is 10 commits behind head on FEATURE_pytest_conversion.

Additional details and impacted files
@@                    Coverage Diff                     @@
##           FEATURE_pytest_conversion    #5827   +/-   ##
==========================================================
  Coverage                      89.74%   89.74%           
==========================================================
  Files                             92       92           
  Lines                          22940    22940           
  Branches                        5462     5462           
==========================================================
  Hits                           20588    20588           
  Misses                          1620     1620           
  Partials                         732      732           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ESadek-MO ESadek-MO left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @trexfeathers!

Just a small suggestion, but otherwise awesome!

lib/iris/tests/_shared_utils.py Show resolved Hide resolved
Copy link
Contributor

@ESadek-MO ESadek-MO left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@ESadek-MO ESadek-MO merged commit 096b2b3 into SciTools:FEATURE_pytest_conversion Mar 13, 2024
19 checks passed
@trexfeathers trexfeathers deleted the better_results_path branch May 3, 2024 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants