summaryrefslogtreecommitdiff
path: root/archaeological_finds/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-28 11:31:04 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:28 +0200
commit764da8cb517be0224db8da4f881f569997146512 (patch)
treee19f1dfa26f4547001189721a89f0a5cbe036c57 /archaeological_finds/tests.py
parentdc2ecdd813af9a69fc95170c14b2a1acf8ecb111 (diff)
downloadIshtar-764da8cb517be0224db8da4f881f569997146512.tar.bz2
Ishtar-764da8cb517be0224db8da4f881f569997146512.zip
Fix cache generation for finds and context records
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r--archaeological_finds/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py
index 620f648fd..d5f1fdb62 100644
--- a/archaeological_finds/tests.py
+++ b/archaeological_finds/tests.py
@@ -680,7 +680,7 @@ class FindSearchTest(FindInit, TestCase):
content = response.content.decode()
res = json.loads(content)
self.assertEqual(res['recordsTotal'], 1)
- self.assertEqual(res["rows"][0]["material_types__label"],
+ self.assertEqual(res["rows"][0]["material_types"],
str(iron_metal))
# no result for the brother
@@ -744,7 +744,7 @@ class FindSearchTest(FindInit, TestCase):
self.assertEqual(response.status_code, 200)
res = json.loads(response.content.decode())
self.assertEqual(res['recordsTotal'], 1)
- self.assertEqual(res["rows"][0]["datings__period__label"],
+ self.assertEqual(res["rows"][0]["cached_periods"],
str(final_neo))
# no result for the brother