summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/tests.py1
-rw-r--r--tests/fixtures_model_package/tests.py1
-rwxr-xr-xtests/runtests.py5
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py
index 1c106a77c2..a15a6aec8b 100644
--- a/tests/fixtures/tests.py
+++ b/tests/fixtures/tests.py
@@ -69,6 +69,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
def test_initial_data(self):
# migrate introduces 1 initial data object from initial_data.json.
+ # this behavior is deprecated and will be removed in Django 1.9
self.assertQuerysetEqual(Book.objects.all(), [
'<Book: Achieving self-awareness of Python programs>'
])
diff --git a/tests/fixtures_model_package/tests.py b/tests/fixtures_model_package/tests.py
index 9e41ee1cdf..506e5846cc 100644
--- a/tests/fixtures_model_package/tests.py
+++ b/tests/fixtures_model_package/tests.py
@@ -67,6 +67,7 @@ class FixtureTestCase(TestCase):
def test_initial_data(self):
"Fixtures can load initial data into models defined in packages"
# migrate introduces 1 initial data object from initial_data.json
+ # this behavior is deprecated and will be removed in Django 1.9
self.assertQuerysetEqual(
Book.objects.all(), [
'Achieving self-awareness of Python programs'
diff --git a/tests/runtests.py b/tests/runtests.py
index 857ea25f6a..c32cc32cdf 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -223,6 +223,11 @@ def django_tests(verbosity, interactive, failfast, test_labels):
)
warnings.filterwarnings(
'ignore',
+ 'initial_data fixtures are deprecated. Use data migrations instead.',
+ RemovedInDjango19Warning
+ )
+ warnings.filterwarnings(
+ 'ignore',
'IPAddressField has been deprecated. Use GenericIPAddressField instead.',
RemovedInDjango19Warning
)