diff options
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 |
commit | 764da8cb517be0224db8da4f881f569997146512 (patch) | |
tree | e19f1dfa26f4547001189721a89f0a5cbe036c57 /archaeological_finds/tests.py | |
parent | dc2ecdd813af9a69fc95170c14b2a1acf8ecb111 (diff) | |
download | Ishtar-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.py | 4 |
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 |