From 096bf9a3dcee0d72dba4c6c9f3802a02ac6d4d12 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 28 May 2019 11:31:04 +0200 Subject: Fix cache generation for finds and context records --- archaeological_finds/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/tests.py') 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 -- cgit v1.2.3