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

Add Mypy checks to tests #1353

Merged
merged 8 commits into from
Jan 11, 2022
Merged

Add Mypy checks to tests #1353

merged 8 commits into from
Jan 11, 2022

Conversation

aminalaee
Copy link
Member

Closes #1045.

Adds Mypy checks to the tests.

I'll add a few comments where it can be confusing to review this.

tests/test_datastructures.py Outdated Show resolved Hide resolved
@@ -422,13 +422,13 @@ async def subdomain_app(scope, receive, send):
await response(scope, receive, send)


subdomain_app = Router(
subdomain_router = Router(
Copy link
Member Author

Choose a reason for hiding this comment

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

The name clashes with the already defined subdomain_app.

tests/test_formparsers.py Outdated Show resolved Hide resolved
@aminalaee aminalaee added the typing Type annotations or mypy issues label Dec 8, 2021
@aminalaee aminalaee requested a review from a team December 9, 2021 08:28
Add support for functools.partial in WebsocketRoute (#1356)

* Add support for functools.partial in WebsocketRoute

* remove commented code

* Refactor tests for partian endpoint and ws

Fix snippet on config.md (#1358)

* Fix snippet on config.md

* Update docs/config.md

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>

Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>

remove outdated test
tests/middleware/test_cors.py Show resolved Hide resolved
@aminalaee aminalaee merged commit 3c93a19 into master Jan 11, 2022
@aminalaee aminalaee deleted the add-mypy-check-to-tests branch January 11, 2022 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typing Type annotations or mypy issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have mypy check types on test code
3 participants