diff --git a/app/email_utils.py b/app/email_utils.py index b6d19505..a0ce7a0a 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -1450,7 +1450,6 @@ def save_envelope_for_debugging(envelope: Envelope, file_name_prefix=None) -> st """Save envelope for debugging to temporary location Return the file path """ - LOG.d("TE {}".format( TEMP_DIR)) if TEMP_DIR: file_name = str(uuid.uuid4()) + ".eml" if file_name_prefix: diff --git a/pytest.ini b/pytest.ini index c0f5472c..3d362baf 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,5 @@ [pytest] -xaddopts = +addopts = --cov --cov-config coverage.ini --cov-report=html:htmlcov diff --git a/tests/test_email_handler.py b/tests/test_email_handler.py index c89589eb..1f7cdd59 100644 --- a/tests/test_email_handler.py +++ b/tests/test_email_handler.py @@ -159,12 +159,3 @@ def test_preserve_5xx_with_no_header(flask_client): envelope.rcpt_tos = [msg["to"]] result = email_handler.MailHandler()._handle(envelope, msg) assert result == status.E512 - -def test_lol(): - msg = load_eml_file("KeyErrorbf6219c1-3bed-419f-ae40-bec264204e2d.eml") - msg.as_string() - envelope = Envelope() - envelope.mail_from = msg[headers.FROM] - envelope.rcpt_tos = [msg["to"]] - envelope.original_content = msg.as_string() - result = email_handler.MailHandler()._handle(envelope, msg)