Skip to content

Commit af605b9

Browse files
committed
.
1 parent bdcf7b2 commit af605b9

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

pytest_django/fixtures.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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
478476
def 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
509506
def 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."""

tests/test_without_django_loaded.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
5554
def test_client(pytester: pytest.Pytester) -> None:
5655
pytester.makepyfile(
5756
"""

0 commit comments

Comments
 (0)