diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-19 18:28:10 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:56 +0200 |
commit | eb5c5b81bb4586eaadf408c4c95eca2ee26e9e6e (patch) | |
tree | 97ca3ad47f32e5fa7c1ea26683aace7422db958a /archaeological_finds/tests.py | |
parent | 4f63ed814f96bbc68c22c98b799c3911d62aa737 (diff) | |
download | Ishtar-eb5c5b81bb4586eaadf408c4c95eca2ee26e9e6e.tar.bz2 Ishtar-eb5c5b81bb4586eaadf408c4c95eca2ee26e9e6e.zip |
Fix test configuration
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) |