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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index e95010d36..7cfa83435 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -163,7 +163,7 @@ class ImportTest(object):
for tg in tgs[1:]:
tg.delete()
target3 = tgs[0]
- iron = models.Period.objects.get(txt_idx='iron_age')
+ iron = models.Period.objects.get(txt_idx='iron-age')
target3.value = iron.pk
target3.is_set = True
target3.associated_import = None
@@ -300,7 +300,7 @@ class ImportOperationTest(ImportTest, TestCase):
self.assertEqual(last_ope.periods.count(), 3)
periods = [period.txt_idx for period in last_ope.periods.all()]
- self.assertIn('iron_age', periods)
+ self.assertIn('iron-age', periods)
self.assertIn('gallo-roman', periods)
# target key set for another user
self.assertNotIn('neolithic', periods)
@@ -1438,8 +1438,8 @@ class OperationSearchTest(TestCase, OperationInitTest):
c = Client()
neo = models.Period.objects.get(txt_idx='neolithic')
- final_neo = models.Period.objects.get(txt_idx='final_neolithic')
- recent_neo = models.Period.objects.get(txt_idx='recent_neolithic')
+ final_neo = models.Period.objects.get(txt_idx='final-neolithic')
+ recent_neo = models.Period.objects.get(txt_idx='recent-neolithic')
ope.periods.add(final_neo)
search = {'periods': final_neo.pk}