diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2014-01-20 10:45:21 +0800 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2014-01-20 10:45:21 +0800 |
commit | d818e0c9b2b88276cc499974f9eee893170bf0a8 (patch) | |
tree | 13ef631f7ba50bf81fa36f484abf925ba8172651 /tests/fixtures_model_package | |
parent | 6e7bd0b63bd01949ac4fd647f2597639bed0c3a2 (diff) | |
download | django-d818e0c9b2b88276cc499974f9eee893170bf0a8.tar.gz |
Fixed #16905 -- Added extensible checks (nee validation) framework
This is the result of Christopher Medrela's 2013 Summer of Code project.
Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian
Apolloner, and Alex Gaynor for review notes along the way.
Also: Fixes #8579, fixes #3055, fixes #19844.
Diffstat (limited to 'tests/fixtures_model_package')
-rw-r--r-- | tests/fixtures_model_package/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/fixtures_model_package/tests.py b/tests/fixtures_model_package/tests.py index b869c34329..9e41ee1cdf 100644 --- a/tests/fixtures_model_package/tests.py +++ b/tests/fixtures_model_package/tests.py @@ -5,6 +5,7 @@ import warnings from django.core import management from django.db import transaction from django.test import TestCase, TransactionTestCase +from django.test.utils import override_system_checks from django.utils.six import StringIO from .models import Article, Book @@ -30,6 +31,7 @@ class TestNoInitialDataLoading(TransactionTestCase): available_apps = ['fixtures_model_package'] + @override_system_checks([]) def test_migrate(self): with transaction.atomic(): Book.objects.all().delete() @@ -41,6 +43,7 @@ class TestNoInitialDataLoading(TransactionTestCase): ) self.assertQuerysetEqual(Book.objects.all(), []) + @override_system_checks([]) def test_flush(self): # Test presence of fixture (flush called by TransactionTestCase) self.assertQuerysetEqual( |