summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index e0e5d5313..c32c050fd 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -616,7 +616,9 @@ def create_orga(user):
def create_operation(user, orga=None, values={}):
- dct = {'year': 2010, 'operation_type_id': 1,
+ operation_type = models.OperationType.objects.get(
+ txt_idx="arch_diagnostic")
+ dct = {'year': 2010, 'operation_type_id': operation_type.pk,
'history_modifier': user}
dct.update(values)
if orga: