From 5780c6eaa5d45d1373321bc751bbb6becad1ac83 Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:14:13 -0400 Subject: [PATCH] Fix test for django client --- tests/test_djangoclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_djangoclient.py b/tests/test_djangoclient.py index ad89c69c9..84d9e18d7 100644 --- a/tests/test_djangoclient.py +++ b/tests/test_djangoclient.py @@ -47,7 +47,7 @@ def test_attach_file(self): html = self.browser.html self.assertIn("text/plain", html) - self.assertIn(open(file_path, "rb").read().decode("utf-8"), html) + self.assertIn(open(file_path).read().strip(), html) def test_forward_to_none_page(self): "should not fail when trying to forward to none"