Fix tests now that the switches are loaded by migrations.

This commit is contained in:
2013-04-05 11:03:07 +01:00
parent 9e59e3e5d1
commit b74a0b8bfc

View File

@@ -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'))