From e9f71aa7435ad265e4a7d53978f8ce24033477d5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 9 Nov 2022 13:40:06 +0100 Subject: Fix tests --- 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 f79ec7dd2..19b104b62 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -1985,7 +1985,7 @@ class FindHistoryTest(FindInit, TestCase): c.login(username=self.username, password=self.password) response = c.get(reverse("show-find", kwargs={"pk": find.pk})) self.assertEqual(response.status_code, 200) - self.assertIn(b'class="card sheet"', response.content) + self.assertIn('class="card sheet"', response.content.decode("utf-8")) content = response.content.decode("utf-8") self.assertNotIn(Period.objects.get(txt_idx="neolithic").label, content) self.assertNotIn("5001", content) @@ -2003,7 +2003,7 @@ class FindHistoryTest(FindInit, TestCase): content, msg="ceramic not found in historical sheet", ) - self.assertIn("5001", content, msg="5001 not found in historical " "sheet") + self.assertIn("5001", content, msg="5001 not found in historical sheet") self.assertIn(Period.objects.get(txt_idx="neolithic").label, content) def test_m2m_history_restore(self): -- cgit v1.2.3