diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-11-09 13:40:06 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:19 +0100 |
commit | e9f71aa7435ad265e4a7d53978f8ce24033477d5 (patch) | |
tree | f5bda3993a31d8a749a37984c427b321897360c3 /archaeological_finds/tests.py | |
parent | f263918be794c60f3209e697b736335e4c5935c2 (diff) | |
download | Ishtar-e9f71aa7435ad265e4a7d53978f8ce24033477d5.tar.bz2 Ishtar-e9f71aa7435ad265e4a7d53978f8ce24033477d5.zip |
Fix tests
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 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): |