summaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorChandrakant Kumar <k.03chandra@gmail.com>2017-06-16 08:47:17 -0400
committerTim Graham <timograham@gmail.com>2017-06-16 11:06:01 -0400
commitf6800a081afa27eaee9229ad5ccfd86c6c61496d (patch)
tree92a28b31e95e482015427f7236609deb7058032f /tests/fixtures
parent874b1f2cac7b79597ce87cc244b7cefc5c5cd821 (diff)
downloaddjango-f6800a081afa27eaee9229ad5ccfd86c6c61496d.tar.gz
Refs #27787 -- Corrected or removed invalid call_command() options.
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py
index fb9ba91d3d..477f64ce05 100644
--- a/tests/fixtures/tests.py
+++ b/tests/fixtures/tests.py
@@ -592,8 +592,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
def test_loading_using(self):
# Load db fixtures 1 and 2. These will load using the 'default' database identifier explicitly
- management.call_command('loaddata', 'db_fixture_1', verbosity=0, using='default')
- management.call_command('loaddata', 'db_fixture_2', verbosity=0, using='default')
+ management.call_command('loaddata', 'db_fixture_1', verbosity=0, database='default')
+ management.call_command('loaddata', 'db_fixture_2', verbosity=0, database='default')
self.assertQuerysetEqual(Article.objects.all(), [
'<Article: Who needs more than one database?>',
'<Article: Who needs to use compressed data?>',
@@ -604,7 +604,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
with self.assertRaisesMessage(CommandError, "No fixture named 'db_fixture_3' found."):
management.call_command('loaddata', 'db_fixture_3', verbosity=0)
with self.assertRaisesMessage(CommandError, "No fixture named 'db_fixture_3' found."):
- management.call_command('loaddata', 'db_fixture_3', verbosity=0, using='default')
+ management.call_command('loaddata', 'db_fixture_3', verbosity=0, database='default')
self.assertQuerysetEqual(Article.objects.all(), [])
def test_output_formats(self):