Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Simplified the deletions performed by the swappable_models test.

This is required to allow the test to run without error under SQLite in the CI environment.
  • Loading branch information...
commit 18d7c1ea3ad4523ec848b800fd85984582efe32c 1 parent fdb5c98
Russell Keith-Magee authored November 24, 2012
4  tests/regressiontests/swappable_models/tests.py
@@ -26,8 +26,8 @@ def test_generated_data(self):
26 26
         "Permissions and content types are not created for a swapped model"
27 27
 
28 28
         # Delete all permissions and content_types
29  
-        Permission.objects.all().delete()
30  
-        ContentType.objects.all().delete()
  29
+        Permission.objects.filter(content_type__app_label='swappable_models').delete()
  30
+        ContentType.objects.filter(app_label='swappable_models').delete()
31 31
 
32 32
         # Re-run syncdb. This will re-build the permissions and content types.
33 33
         new_io = StringIO()

0 notes on commit 18d7c1e

Please sign in to comment.
Something went wrong with that request. Please try again.