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

Some more typing support for pytest-django fixtures #1094

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

bluetech
Copy link
Member

@bluetech bluetech commented Nov 8, 2023

For users (like me) who like to type annotate their tests, this adds types in pytest_django for typing the django_capture_on_commit_callbacks, django_assert_num_queries and django_assert_max_num_queries fixtures (in addition to django_db_blocker from a previous PR).

This also serves as a typing test.
This allows typing the `django_capture_on_commit_callbacks` fixture.
This allows typing the `django_assert_num_queries` and
`django_assert_max_num_queries` fixtures.
@bluetech bluetech merged commit 16ee779 into pytest-dev:master Nov 8, 2023
17 checks passed
@bluetech bluetech deleted the fixture-typing branch November 8, 2023 10:05
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.

None yet

1 participant