Skip to content

Commit 7b60d7d

Browse files
author
Ignacio Avas
committed
Fix typo in *kwargs invocation
1 parent 90cda8b commit 7b60d7d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test_query_counter/apps.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from django.test import TransactionTestCase
1111
from django.test.utils import get_runner
1212
from django.utils.module_loading import import_string
13-
1413
from test_query_counter.query_count import (TestCaseQueryContainer,
1514
TestResultQueryContainer)
1615

@@ -98,7 +97,7 @@ def wrapped(self, *args, **kwargs):
9897
def wrap_tear_down(cls, tear_down):
9998
def wrapped(self, *args, **kwargs):
10099
if not hasattr(cls, 'test_result_container') or not cls.enabled():
101-
return tear_down(self, *args, *kwargs)
100+
return tear_down(self, *args, **kwargs)
102101

103102
container = cls.get_testcase_container()
104103

@@ -113,7 +112,7 @@ def wrapped(self, *args, **kwargs):
113112
current_queries = container.filter_by(exclusions)
114113
all_queries.add(self.id(), current_queries)
115114

116-
return tear_down(self, *args, *kwargs)
115+
return tear_down(self, *args, **kwargs)
117116

118117
return wrapped
119118

0 commit comments

Comments
 (0)