mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	[1.7.x] Fixed stable/1.7.x test failures from refs #23699.
This commit is contained in:
		| @@ -1,5 +1,6 @@ | |||||||
| from django.test import TestCase |  | ||||||
| from django.core import management | from django.core import management | ||||||
|  | from django.test import TestCase | ||||||
|  | from django.test.utils import override_system_checks | ||||||
|  |  | ||||||
| from .models import Book | from .models import Book | ||||||
|  |  | ||||||
| @@ -10,8 +11,9 @@ class TestNoInitialDataLoading(TestCase): | |||||||
|     in Django 1.9 when migrations become required and initial data is no longer |     in Django 1.9 when migrations become required and initial data is no longer | ||||||
|     supported. |     supported. | ||||||
|     """ |     """ | ||||||
|     available_apps = ['django.contrib.auth', 'django.contrib.contenttypes', 'fixtures_migration'] |     available_apps = ['fixtures_migration'] | ||||||
|  |  | ||||||
|  |     @override_system_checks([]) | ||||||
|     def test_migrate(self): |     def test_migrate(self): | ||||||
|         self.assertQuerysetEqual(Book.objects.all(), []) |         self.assertQuerysetEqual(Book.objects.all(), []) | ||||||
|         management.call_command( |         management.call_command( | ||||||
| @@ -20,6 +22,7 @@ class TestNoInitialDataLoading(TestCase): | |||||||
|         ) |         ) | ||||||
|         self.assertQuerysetEqual(Book.objects.all(), []) |         self.assertQuerysetEqual(Book.objects.all(), []) | ||||||
|  |  | ||||||
|  |     @override_system_checks([]) | ||||||
|     def test_flush(self): |     def test_flush(self): | ||||||
|         self.assertQuerysetEqual(Book.objects.all(), []) |         self.assertQuerysetEqual(Book.objects.all(), []) | ||||||
|         management.call_command( |         management.call_command( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user