-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Get test coverage back up to 100% #7656
Comments
It can help to set a strictness on files: nedbat/coveragepy#691 - There's a script on this issue that can be used for it. My suggestion is to avoid regressions. |
A note from working on this a bit: in order to effectively cover these lines: pydantic/pydantic/_internal/_typing_extra.py Lines 170 to 172 in b7d9281
pydantic/pydantic/_internal/_model_construction.py Lines 587 to 588 in b7d9281
You need to create a model class in the initial stack frame, i.e. in the actual |
I'm at PyCon US 2024 and am working on increasing the test coverage of the |
Now, I will work on the test coverage of the |
Hi @sydney-runkle, folks,
compared to coverage shown at https://smokeshow.helpmanual.io/1z3s4a3o5l1i1b365u0t/ (90.97%). Thank you :)
EDIT: if I got it right, the Footnotes
|
Yep, you have to run the As a side note, you might want to work on test coverage for tests that aren't Feel free to ping me if you have any other questions. |
Relevant opportunity for tests: #9183 (comment) Idea for improving coverage and CI: #9740 (comment) |
Test coverage is currently at 96%, ideally we'd be at 100% 😄.
If you're a first time contributor -- this is a great issue to work on. Writing tests is one of the fastest ways to get comfortable with
pydantic
internals 😄.The text was updated successfully, but these errors were encountered: