Skip to content

Commit 687abcb

Browse files
committed
.
1 parent af605b9 commit 687abcb

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

pytest_django/asserts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from __future__ import annotations
66

77
from functools import wraps
8-
from typing import TYPE_CHECKING, Any, Callable, overload
8+
from typing import TYPE_CHECKING, Any, Callable
99

1010
from django import VERSION
1111
from django.test import LiveServerTestCase, SimpleTestCase, TestCase, TransactionTestCase
@@ -55,7 +55,7 @@ def assertion_func(*args: Any, **kwargs: Any) -> Any:
5555

5656

5757
if TYPE_CHECKING:
58-
from collections.abc import Collection, Iterator, Sequence
58+
from collections.abc import Collection, Iterator, Sequence, overload
5959

6060
from django import forms
6161
from django.db.models import Model, QuerySet, RawQuerySet

tests/test_fixtures.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,9 @@ def admin_required_view(request):
677677
)
678678
django_pytester.makepyfile(
679679
"""
680-
import pytest
681680
from django.utils.encoding import force_str
682681
from tpkg.app.models import MyCustomUser
683682
684-
@pytest.mark.django_db
685683
def test_custom_user_model(admin_client):
686684
resp = admin_client.get('/admin-required/')
687685
assert force_str(resp.content) == 'You are an admin'

tests/test_without_django_loaded.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,9 @@ def test_transactional_db(transactional_db):
5454
def test_client(pytester: pytest.Pytester) -> None:
5555
pytester.makepyfile(
5656
"""
57-
import pytest
58-
5957
def test_client(client):
6058
assert 0
6159
62-
@pytest.mark.django_db
6360
def test_admin_client(admin_client):
6461
assert 0
6562
"""

0 commit comments

Comments
 (0)