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 | 8c6bf8b5920c1bb5ef7bf462220890ba4a475e76 (patch) | |
tree | f5bda3993a31d8a749a37984c427b321897360c3 /archaeological_finds | |
parent | 8f8a453cf34441ce2a44d68a20837a52971d42a5 (diff) | |
download | Ishtar-8c6bf8b5920c1bb5ef7bf462220890ba4a475e76.tar.bz2 Ishtar-8c6bf8b5920c1bb5ef7bf462220890ba4a475e76.zip |
Fix tests
Diffstat (limited to 'archaeological_finds')
-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): |