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

Rename fixture classes that were causing warnings #1822

Merged
merged 3 commits into from
May 3, 2024

Conversation

jonathangreen
Copy link
Member

@jonathangreen jonathangreen commented May 3, 2024

Description

Rename two fixture classes to avoid warnings. And make pytest treat PytestWarning as an error, so that we notice these sooner in the future. Since its easy to name fixture classes incorrectly by accident.

Motivation and Context

Two fixture classes TestHttpFixture and TestLicenseFixture were causing Pytest warnings because they were being loaded as tests because the class name started with Test.

How Has This Been Tested?

Running tests in CI

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen requested a review from a team May 3, 2024 14:53
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.10%. Comparing base (d851811) to head (f811824).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1822      +/-   ##
==========================================
- Coverage   90.10%   90.10%   -0.01%     
==========================================
  Files         299      299              
  Lines       39521    39521              
  Branches     8582     8582              
==========================================
- Hits        35611    35609       -2     
- Misses       2589     2590       +1     
- Partials     1321     1322       +1     

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

@jonathangreen jonathangreen force-pushed the chore/rename-fixture-class branch from 113645f to 98840af Compare May 3, 2024 15:32
@jonathangreen jonathangreen force-pushed the chore/rename-fixture-class branch from 98840af to 4bf0dba Compare May 3, 2024 17:07
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

Looks good! 👍🏽

@jonathangreen jonathangreen merged commit 0df27b1 into main May 3, 2024
20 checks passed
@jonathangreen jonathangreen deleted the chore/rename-fixture-class branch May 3, 2024 17:39
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