summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-07-26 13:15:54 -0400
committerTim Graham <timograham@gmail.com>2014-08-08 14:01:59 -0400
commitf53b1c779b9a6258cfb61ef00ed5ec8340b96d52 (patch)
tree3a9f7a28ec0ec2f4c9de473db4c780161649aa4d /tests
parent73ff4498aab1df286cf9aeb2ad9d801ac8e0263e (diff)
Fixed #23099 -- Removed usage of deprecated initial data in Django's test suite.
Thanks Claude Paroz for assistance with debugging the tests.
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
)