Skip to content

🔧 Configure strict pytest options and update/refactor tests - #2790

Merged
tiangolo merged 10 commits into
fastapi:masterfrom
graingert:configure-strict-pytest
Jul 19, 2021
Merged

tiangolo merged 10 commits into
fastapi:masterfrom
graingert:configure-strict-pytest

Conversation

@graingert

Copy link
Copy Markdown
Contributor

currently upstream is having to override pytest options to ignore these warnings pydantic/pydantic#2337 (comment)

@codecov

codecov Bot commented Feb 10, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #2790 (c36d79e) into master (00a8420) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##            master     #2790     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files          226       254     +28     
  Lines         6783      7855   +1072     
===========================================
+ Hits          6783      7855   +1072     
Impacted Files Coverage Δ
tests/main.py 100.00% <0.00%> (ø)
fastapi/utils.py 100.00% <0.00%> (ø)
fastapi/params.py 100.00% <0.00%> (ø)
fastapi/routing.py 100.00% <0.00%> (ø)
fastapi/encoders.py 100.00% <0.00%> (ø)
fastapi/requests.py 100.00% <0.00%> (ø)
fastapi/responses.py 100.00% <0.00%> (ø)
fastapi/exceptions.py 100.00% <0.00%> (ø)
fastapi/concurrency.py 100.00% <0.00%> (ø)
fastapi/applications.py 100.00% <0.00%> (ø)
... and 79 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71c96d9...c36d79e. Read the comment docs.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 6cc34f1 at: https://60246ad88f4cb063c3e24d54--fastapi.netlify.app

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 5f6d011a78f093ffb31cc1b451d3f6f7d78c7fe9 at: https://6024727aee9f6d6ae04972a0--fastapi.netlify.app

@graingert
graingert force-pushed the configure-strict-pytest branch from 5f6d011 to 9f50ab2 Compare February 10, 2021 23:59
@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 9f50ab2 at: https://602473ee4692647992a3c062--fastapi.netlify.app

Comment thread docs_src/custom_response/tutorial008.py Resolved

@tiangolo tiangolo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for all your work on this! 🙇 🤓

Thanks for improving the file handling and for the refactor to pathlib, I love it. 🤩

I have mainly a couple of questions about the configs.

Comment thread docs_src/custom_response/tutorial008.py Resolved
Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved
Comment thread pyproject.toml Resolved
@tiangolo tiangolo changed the title configure strict pytest options 🔧 Configure strict pytest options Jul 5, 2021
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
@graingert
graingert requested a review from tiangolo July 5, 2021 12:01
@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 7fcb5e5 at: https://60f5bb35a358f200aa49c7a3--fastapi.netlify.app

@graingert

Copy link
Copy Markdown
Contributor Author

@tiangolo Hello thanks for enabling my build!
There's a number of test failures, and I'd like to push fixes to them
I see you're currently working on my branch please can you let be know if you've finished

@tiangolo

Copy link
Copy Markdown
Member

Hey @graingert! Sure thing, go ahead! I just updated the docs that use that tutorial example to account for the changes, but that's done. And thanks a lot!

BTW, I commented out the pytest ignores to see if they would explode or not.

Also, I think the errors are because some recent tests used Pydantic models with Test in the name that were added in a recent PR. If you wanna fix those, that's awesome, but otherwise, you can just let me know and I can do it. 🤓

@graingert

graingert commented Jul 19, 2021 via email

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 69d69e2 at: https://60f5cb5495d61e00c8846e31--fastapi.netlify.app

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 9bd72ae at: https://60f5cdda1fb0c60098118bb8--fastapi.netlify.app

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit c36d79e at: https://60f5cecd2ffa5f00e92a0ef5--fastapi.netlify.app

@tiangolo tiangolo changed the title 🔧 Configure strict pytest options 🔧 Configure strict pytest options and update/refactor tests Jul 19, 2021
@tiangolo
tiangolo merged commit 2d296c5 into fastapi:master Jul 19, 2021
@graingert
graingert deleted the configure-strict-pytest branch July 19, 2021 19:18
PrettyWood added a commit to PrettyWood/pydantic that referenced this pull request Jul 19, 2021
Now that fastapi/fastapi#2790 has been merged
in master, we don't need to filter those warnings anymore
samuelcolvin pushed a commit to pydantic/pydantic that referenced this pull request Jul 19, 2021
Now that fastapi/fastapi#2790 has been merged
in master, we don't need to filter those warnings anymore
solomein-sv pushed a commit to solomein-sv/fastapi that referenced this pull request Jul 30, 2021
…2790)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
tomasz-kaminski-jir pushed a commit to tomasz-kaminski-jir/pyd_analyze that referenced this pull request Mar 23, 2025
Now that fastapi/fastapi#2790 has been merged
in master, we don't need to filter those warnings anymore
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