From c3e51c5d92c7df4d8c1e143e92b94425621ace0f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 9 Dec 2021 11:39:01 +0100 Subject: Document - create from parent: adapt test --- ishtar_common/tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/tests.py') diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 7d70db8f5..3e1f16433 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -3610,8 +3610,10 @@ class DocumentTest(TestCase): ), ) response = c.get("/show-document/{}/".format(doc.pk)) - self.assertIn(new_child_document.title, response.content.decode()) - self.assertIn(doc.title, response.content.decode()) + content = response.content.decode() + self.assertIn(new_child_document.title, content) + self.assertIn(doc.title, content) + self.assertIn(self.ope1.code_patriarche, content) class JinjaFilterTest(TestCase): -- cgit v1.2.3