summaryrefslogtreecommitdiff
path: root/archaeological_operations/tests.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-30 15:54:44 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-30 15:54:44 +0100
commitbfc6d510e3f43c78aefea1efd38b66518370b510 (patch)
treed83807593dce8ef9721c3a5ecd33c59c1efd9ff0 /archaeological_operations/tests.py
parent7b6dda4623536aedba7422f088e821c69b7e3dc4 (diff)
downloadIshtar-bfc6d510e3f43c78aefea1efd38b66518370b510.tar.bz2
Ishtar-bfc6d510e3f43c78aefea1efd38b66518370b510.zip
Finds: fix material col in tables
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r--archaeological_operations/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index ba7722d84..d4134693f 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -689,7 +689,8 @@ class OperationSearchTest(TestCase, OperationInitTest):
# one result for exact search
response = c.get(reverse('get-operation'), search)
self.assertEqual(response.status_code, 200)
- self.assertEqual(json.loads(response.content)['total'], 1)
+ res = json.loads(response.content)
+ self.assertTrue(res['total'] == 1)
# no result for the brother
search = {'periods': recent_neo.pk}