From b74a0b8bfc48624fa64d9150f10e0f214127ba00 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 5 Apr 2013 11:03:07 +0100 Subject: [PATCH] Fix tests now that the switches are loaded by migrations. --- app/stores/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/stores/tests.py b/app/stores/tests.py index 8fffed2..34559ef 100644 --- a/app/stores/tests.py +++ b/app/stores/tests.py @@ -15,7 +15,7 @@ class StoresViewsTestCase(TestCase): self.chain = Chain.objects.get(pk=1) # Enable claim support for the tests - Switch.objects.create(name='claim_support', active=True) + Switch.objects.filter(name='claim_support').update(active=True) def test_map_index(self): resp = self.client.get(reverse('map'))