File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -458,9 +458,7 @@ def async_client() -> django.test.AsyncClient:
458458
459459
460460@pytest .fixture
461- def django_user_model (
462- # db: None
463- ) -> type [django .contrib .auth .models .User ]:
461+ def django_user_model () -> type [django .contrib .auth .models .User ]:
464462 """The class of Django's user model."""
465463 from django .contrib .auth import get_user_model
466464
@@ -476,7 +474,6 @@ def django_username_field(django_user_model: type[django.contrib.auth.models.Use
476474
477475@pytest .fixture
478476def admin_user (
479- # db: None,
480477 django_user_model : type [django .contrib .auth .models .User ],
481478 django_username_field : str ,
482479) -> django .contrib .auth .models .User :
@@ -507,7 +504,6 @@ def admin_user(
507504
508505@pytest .fixture
509506def admin_client (
510- # db: None,
511507 admin_user : django .contrib .auth .models .User ,
512508) -> django .test .Client :
513509 """A Django test client logged in as an admin user."""
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ def test_transactional_db(transactional_db):
5151 r .stdout .fnmatch_lines (["*4 skipped*" ])
5252
5353
54- # @pytest.mark.django_db
5554def test_client (pytester : pytest .Pytester ) -> None :
5655 pytester .makepyfile (
5756 """
You can’t perform that action at this time.
0 commit comments