Skip to content

test: Update test cases to get full coverage #153

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

effigies
Copy link
Collaborator

I wanted to test the EAGER_IMPORT functionality, and figured we could cover these last few missing lines.

I did remove a guard in DelayedImportErrorModule.__getattr__ that coverage showed was never being entered. That method does not need a super() call, since __class__, __frame_data and __message will all be retrieved without entering that function, and I don't think __file__ needs to get a normal AttributeError instead of ModuleNotFoundError.

Copy link

codecov bot commented May 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (21e5d04) to head (2f99692).

Additional details and impacted files
@@             Coverage Diff              @@
##             main      #153       +/-   ##
============================================
+ Coverage   87.27%   100.00%   +12.72%     
============================================
  Files           1         1               
  Lines         110       108        -2     
  Branches       20        19        -1     
============================================
+ Hits           96       108       +12     
+ Misses          7         0        -7     
+ Partials        7         0        -7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant