File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
TYPE_CHECKING = False
13
13
14
14
15
- test_case = TestCase (' run' )
15
+ test_case = TestCase (" run" )
16
16
17
17
18
18
def _wrapper (name : str ):
@@ -28,10 +28,10 @@ def assertion_func(*args, **kwargs):
28
28
__all__ = []
29
29
assertions_names = set () # type: Set[str]
30
30
assertions_names .update (
31
- {attr for attr in vars (TestCase ) if attr .startswith (' assert' )},
32
- {attr for attr in vars (SimpleTestCase ) if attr .startswith (' assert' )},
33
- {attr for attr in vars (LiveServerTestCase ) if attr .startswith (' assert' )},
34
- {attr for attr in vars (TransactionTestCase ) if attr .startswith (' assert' )},
31
+ {attr for attr in vars (TestCase ) if attr .startswith (" assert" )},
32
+ {attr for attr in vars (SimpleTestCase ) if attr .startswith (" assert" )},
33
+ {attr for attr in vars (LiveServerTestCase ) if attr .startswith (" assert" )},
34
+ {attr for attr in vars (TransactionTestCase ) if attr .startswith (" assert" )},
35
35
)
36
36
37
37
for assert_func in assertions_names :
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def __init__(self, addr: str) -> None:
19
19
for conn in connections .all ():
20
20
# If using in-memory sqlite databases, pass the connections to
21
21
# the server thread.
22
- if conn .vendor == ' sqlite' and conn .is_in_memory_db ():
22
+ if conn .vendor == " sqlite" and conn .is_in_memory_db ():
23
23
# Explicitly enable thread-shareability for this connection.
24
24
conn .inc_thread_sharing ()
25
25
connections_override [conn .alias ] = conn
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ def get_order_number(test: pytest.Item) -> int:
382
382
uses_db = True
383
383
transactional = not issubclass (test_cls , TestCase )
384
384
else :
385
- marker_db = test .get_closest_marker (' django_db' )
385
+ marker_db = test .get_closest_marker (" django_db" )
386
386
if marker_db :
387
387
(
388
388
transaction ,
@@ -395,7 +395,7 @@ def get_order_number(test: pytest.Item) -> int:
395
395
else :
396
396
uses_db = False
397
397
transactional = False
398
- fixtures = getattr (test , ' fixturenames' , [])
398
+ fixtures = getattr (test , " fixturenames" , [])
399
399
transactional = transactional or "transactional_db" in fixtures
400
400
uses_db = uses_db or "db" in fixtures
401
401
You can’t perform that action at this time.
0 commit comments