summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
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
commit34868fbe8f2f733d4d8513c8f5f2b0656f62abff (patch)
tree97ca3ad47f32e5fa7c1ea26683aace7422db958a /archaeological_finds/tests.py
parent986511b2572acb369086ed613adc32ff1d1863a9 (diff)
downloadIshtar-34868fbe8f2f733d4d8513c8f5f2b0656f62abff.tar.bz2
Ishtar-34868fbe8f2f733d4d8513c8f5f2b0656f62abff.zip
Fix test configuration
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py6
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)