From 0c750ed7e26a2595b16c796a2c51addc26fe6d25 Mon Sep 17 00:00:00 2001 From: Dominik Wombacher Date: Jan 23 2023 22:46:57 +0000 Subject: fix: returned html entities ascii instead unicode Depending on installed flask packages and dependencies, the html response could contain ascii instead unicode entities. ''' added as additional replace statement in unit test to change html entity to actual apostrophe. --- diff --git a/tests/test_pagure_flask_ui_fork.py b/tests/test_pagure_flask_ui_fork.py index a63f691..8d33263 100644 --- a/tests/test_pagure_flask_ui_fork.py +++ b/tests/test_pagure_flask_ui_fork.py @@ -6382,7 +6382,9 @@ More information self.assertIn( "

fork/foo/test is not part of fork/ralph/test2's " "family

", - output.get_data(as_text=True).replace("'", "'"), + output.get_data(as_text=True) + .replace("'", "'") + .replace("'", "'"), ) @patch("pagure.lib.notify.send_email")