|
@@ -1085,11 +1085,7 @@ class TransactionTestCase(SimpleTestCase):
|
|
|
apps.set_available_apps(self.available_apps)
|
|
|
|
|
|
if self.fixtures:
|
|
|
- # We have to use this slightly awkward syntax due to the fact
|
|
|
- # that we're using *args and **kwargs together.
|
|
|
- call_command(
|
|
|
- "loaddata", *self.fixtures, **{"verbosity": 0, "database": db_name}
|
|
|
- )
|
|
|
+ call_command("loaddata", *self.fixtures, verbosity=0, database=db_name)
|
|
|
|
|
|
def _should_reload_connections(self):
|
|
|
return True
|
|
@@ -1282,7 +1278,8 @@ class TestCase(TransactionTestCase):
|
|
|
call_command(
|
|
|
"loaddata",
|
|
|
*cls.fixtures,
|
|
|
- **{"verbosity": 0, "database": db_name},
|
|
|
+ verbosity=0,
|
|
|
+ database=db_name,
|
|
|
)
|
|
|
except Exception:
|
|
|
cls._rollback_atomics(cls.cls_atomics)
|