diff options
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index d9be3d25d..7303ed56d 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -955,6 +955,10 @@ class FindQATest(FindInit, TestCase): url = reverse('find-qa-packaging', args=[pks]) response = c.get(url) self.assertRedirects(response, '/') + profile, created = IshtarSiteProfile.objects.get_or_create( + slug='default', active=True) + profile.warehouse = False + profile.save() c = Client() c.login(username=self.username, password=self.password) @@ -962,8 +966,6 @@ class FindQATest(FindInit, TestCase): # warehouse profile must be activated self.assertEqual(response.status_code, 404) - profile, created = IshtarSiteProfile.objects.get_or_create( - slug='default', active=True) profile.warehouse = True profile.save() response = c.get(url) |