From 899873d714691601500515a139df7fc3dac9c336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Zaj=C4=85c?= Date: Wed, 17 Jul 2024 15:14:29 +0200 Subject: [PATCH] . --- test/e2e/test_exporting.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/e2e/test_exporting.py b/test/e2e/test_exporting.py index a763690fa..d0c3a3c70 100644 --- a/test/e2e/test_exporting.py +++ b/test/e2e/test_exporting.py @@ -111,21 +111,27 @@ def test_exporting_gui(self) -> None: output_data = json.loads(f.read().decode("ascii")) import base64 import sys + sys.stderr.write(output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"] + "\n") - sys.stderr.write(base64.b64encode(output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"].encode('utf-8')).decode('ascii') + "\n") + sys.stderr.write( + base64.b64encode( + output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"].encode("utf-8") + ).decode("ascii") + + "\n" + ) self.assertEqual( output_data["messages"]["test-smtp-server.artemis"]["reports"][0]["html"], "\n".join( [ "The following domains don't have properly configured e-mail sender verification mechanisms: ", - "

", + "", + "

", " These mechanisms greatly increase the chance that the recipient server will reject a spoofed message.", " Even if a domain is not used to send e-mails, SPF and DMARC records are needed to reduce the possibility to spoof e-mails.", "

",