diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-01 15:05:02 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-01 15:05:02 +0100 |
commit | 44d1bca0fffacf8cf374d10b5a3614b933c148fc (patch) | |
tree | ba3c1158bf0d441c76a3d83016dc514d648a4d06 /archaeological_finds/tests.py | |
parent | ec95be19afda6469337d1e2d98ff78ffc3b40e82 (diff) | |
download | Ishtar-44d1bca0fffacf8cf374d10b5a3614b933c148fc.tar.bz2 Ishtar-44d1bca0fffacf8cf374d10b5a3614b933c148fc.zip |
Cosmetic
Diffstat (limited to 'archaeological_finds/tests.py')
-rw-r--r-- | archaeological_finds/tests.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index ead46b1d9..d9be3d25d 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -694,8 +694,8 @@ class FindSearchTest(FindInit, TestCase): response = client.get(reverse('get-find'), search) self.assertEqual(response.status_code, 200) res = json.loads(response.content) - msg = "{} result(s) where expected for search: {}".format( - expected_result, q) + msg = "{} result(s) where expected for search: {} - found {}" \ + "".format(expected_result, q, res['recordsTotal']) if context: msg = context + " - " + msg self.assertEqual(res['recordsTotal'], expected_result, @@ -736,8 +736,8 @@ class FindSearchTest(FindInit, TestCase): find2.save() result = [ - (u'{}="{}"'.format(loan_key , unicode(_(u"Yes"))), 0), - (u'{}="{}"'.format(loan_key , unicode(_(u"No"))), 2), + (u'{}="{}"'.format(loan_key, unicode(_(u"Yes"))), 0), + (u'{}="{}"'.format(loan_key, unicode(_(u"No"))), 2), ] self._test_search(c, result, context="All container in their " "reference location") @@ -745,8 +745,8 @@ class FindSearchTest(FindInit, TestCase): find2.save() result = [ - (u'{}="{}"'.format(loan_key , unicode(_(u"Yes"))), 1), - (u'{}="{}"'.format(loan_key , unicode(_(u"No"))), 1), + (u'{}="{}"'.format(loan_key, unicode(_(u"Yes"))), 1), + (u'{}="{}"'.format(loan_key, unicode(_(u"No"))), 1), ] self._test_search(c, result, context="One container in his " "reference location") |