summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-04-20 15:04:48 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-12 08:43:31 +0200
commit3a1fe3e257a5e8053ed961d3b6ba21d956ba842b (patch)
tree9c5cdc5f59b4b5e0507e76fac02dd1f765cfa0fe /archaeological_operations/tests.py
parentf11450c633fad24307df7924fd4d2e409a603573 (diff)
downloadIshtar-3a1fe3e257a5e8053ed961d3b6ba21d956ba842b.tar.bz2
Ishtar-3a1fe3e257a5e8053ed961d3b6ba21d956ba842b.zip
Manage own permissions with areas for context records (refs #4060)
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 299ed49f8..6a96ebdf4 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -893,14 +893,14 @@ class OperationInitTest(object):
self.operations.append(create_operation(user, orga))
return self.operations
- def get_default_operation(self, force=False):
+ def get_default_operation(self, force=False, user=None):
if force:
- return self.create_operation()[-1]
- ope = self.create_operation()[0]
+ return self.create_operation(user=user)[-1]
+ ope = self.create_operation(user=user)[0]
if models.Operation.objects.filter(pk=ope.pk).count():
return ope
self.operations.pop(0)
- return self.create_operation()[-1]
+ return self.create_operation(user=user)[-1]
def tearDown(self):
# cleanup for further test
@@ -1614,7 +1614,6 @@ class OperationPermissionTest(TestCase, OperationInitTest):
self.assertRedirects(response, "/")
-
class DashboardTest(TestCase, OperationInitTest):
fixtures = FILE_FIXTURES