@@ -76,21 +76,21 @@ def test_sanity() -> None:
7676 assert assertContains .__doc__
7777
7878
79- def test_fixture_assert (django_testcase : django .test .TestCase ) -> None :
80- django_testcase .assertEqual ("a" , "a" ) # noqa: PT009
79+ def test_fixture_assert (djt : django .test .TestCase ) -> None :
80+ djt .assertEqual ("a" , "a" ) # noqa: PT009
8181
8282 with pytest .raises (AssertionError ):
83- django_testcase .assertXMLEqual ("a" * 10_000 , "a" )
83+ djt .assertXMLEqual ("a" * 10_000 , "a" )
8484
8585
8686class TestInternalDjangoAssert :
87- def test_fixture_assert (self , django_testcase : django .test .TestCase ) -> None :
88- assert django_testcase != self
89- django_testcase .assertEqual ("a" , "a" ) # noqa: PT009
87+ def test_fixture_assert (self , djt : django .test .TestCase ) -> None :
88+ assert djt != self
89+ djt .assertEqual ("a" , "a" ) # noqa: PT009
9090 assert not hasattr (self , "assertEqual" )
9191
9292 with pytest .raises (AssertionError ):
93- django_testcase .assertXMLEqual ("a" * 10_000 , "a" )
93+ djt .assertXMLEqual ("a" * 10_000 , "a" )
9494
9595
9696@pytest .mark .django_project (create_manage_py = True )
@@ -101,7 +101,7 @@ def test_django_test_case_assert(django_pytester: DjangoPytester) -> None:
101101 import django.test
102102
103103 class TestDjangoAssert(django.test.TestCase):
104- def test_fixture_assert(self, django_testcase : django.test.TestCase) -> None:
104+ def test_fixture_assert(self, djt : django.test.TestCase) -> None:
105105 assert False, "Cannot use the fixture"
106106
107107 def test_normal_assert(self) -> None:
@@ -112,7 +112,7 @@ def test_normal_assert(self) -> None:
112112 )
113113 result = django_pytester .runpytest_subprocess ()
114114 result .assert_outcomes (failed = 1 , passed = 1 )
115- assert "missing 1 required positional argument: 'django_testcase '" in result .stdout .str ()
115+ assert "missing 1 required positional argument: 'djt '" in result .stdout .str ()
116116
117117
118118@pytest .mark .django_project (create_manage_py = True )
@@ -122,7 +122,7 @@ def test_unittest_assert(django_pytester: DjangoPytester) -> None:
122122 import unittest
123123
124124 class TestUnittestAssert(unittest.TestCase):
125- def test_fixture_assert(self, django_testcase : unittest.TestCase) -> None:
125+ def test_fixture_assert(self, djt : unittest.TestCase) -> None:
126126 assert False, "Cannot use the fixture"
127127
128128 def test_normal_assert(self) -> None:
@@ -131,4 +131,4 @@ def test_normal_assert(self) -> None:
131131 )
132132 result = django_pytester .runpytest_subprocess ()
133133 result .assert_outcomes (failed = 1 , passed = 1 )
134- assert "missing 1 required positional argument: 'django_testcase '" in result .stdout .str ()
134+ assert "missing 1 required positional argument: 'djt '" in result .stdout .str ()
0 commit comments