Loading tests/fixtures_model_package/tests.py +2 −1 Original line number Diff line number Diff line from __future__ import unicode_literals import warnings from django.core import management from django.db import transaction from django.test import TestCase, TransactionTestCase Loading Loading @@ -100,7 +102,6 @@ class FixtureTestCase(TestCase): ) # Load a fixture that doesn't exist import warnings with warnings.catch_warnings(record=True): management.call_command("loaddata", "unknown.json", verbosity=0, commit=False) Loading tests/fixtures_regress/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ from __future__ import absolute_import, unicode_literals import os import re import warnings from django.core.serializers.base import DeserializationError from django.core import management Loading Loading @@ -441,7 +442,6 @@ class TestFixtures(TestCase): def test_loaddata_not_existant_fixture_file(self): stdout_output = StringIO() import warnings with warnings.catch_warnings(record=True): management.call_command( 'loaddata', Loading Loading
tests/fixtures_model_package/tests.py +2 −1 Original line number Diff line number Diff line from __future__ import unicode_literals import warnings from django.core import management from django.db import transaction from django.test import TestCase, TransactionTestCase Loading Loading @@ -100,7 +102,6 @@ class FixtureTestCase(TestCase): ) # Load a fixture that doesn't exist import warnings with warnings.catch_warnings(record=True): management.call_command("loaddata", "unknown.json", verbosity=0, commit=False) Loading
tests/fixtures_regress/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ from __future__ import absolute_import, unicode_literals import os import re import warnings from django.core.serializers.base import DeserializationError from django.core import management Loading Loading @@ -441,7 +442,6 @@ class TestFixtures(TestCase): def test_loaddata_not_existant_fixture_file(self): stdout_output = StringIO() import warnings with warnings.catch_warnings(record=True): management.call_command( 'loaddata', Loading