We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90cda8b commit 7b60d7dCopy full SHA for 7b60d7d
test_query_counter/apps.py
@@ -10,7 +10,6 @@
10
from django.test import TransactionTestCase
11
from django.test.utils import get_runner
12
from django.utils.module_loading import import_string
13
-
14
from test_query_counter.query_count import (TestCaseQueryContainer,
15
TestResultQueryContainer)
16
@@ -98,7 +97,7 @@ def wrapped(self, *args, **kwargs):
98
97
def wrap_tear_down(cls, tear_down):
99
def wrapped(self, *args, **kwargs):
100
if not hasattr(cls, 'test_result_container') or not cls.enabled():
101
- return tear_down(self, *args, *kwargs)
+ return tear_down(self, *args, **kwargs)
102
103
container = cls.get_testcase_container()
104
@@ -113,7 +112,7 @@ def wrapped(self, *args, **kwargs):
113
112
current_queries = container.filter_by(exclusions)
114
all_queries.add(self.id(), current_queries)
115
116
117
118
return wrapped
119
0 commit comments