out1 = _call(st, cid, crid) > assert out1["ok"] is True and out1["status"] == "sent" E assert (False is True) tests/test_send_one_task.py:756: AssertionError =============================== warnings summary =============================== tests/test_api_attachments_phones_suppression_settings_logs.py: 3 warnings tests/test_api_recipients_subjects_templates.py: 1 warning tests/test_message_builder.py: 9 warnings /usr/local/lib/python3.11/site-packages/bs4/builder/_lxml.py:124: DeprecationWarning: The 'strip_cdata' option of HTMLParser() has never done anything and will eventually be removed. parser = parser( tests/test_api_attachments_phones_suppression_settings_logs.py: 2 warnings tests/test_api_recipients_subjects_templates.py: 2 warnings tests/test_message_builder.py: 8 warnings /usr/local/lib/python3.11/site-packages/pydyf/__init__.py:404: DeprecationWarning: transform is deprecated, use set_matrix instead. warn(Stream.transform.__doc__, DeprecationWarning) tests/test_api_attachments_phones_suppression_settings_logs.py::TestAttachmentsApi::test_convert_template_to_real_pdf tests/test_api_recipients_subjects_templates.py::TestTemplatesApi::test_test_pdf_returns_real_pdf tests/test_api_recipients_subjects_templates.py::TestTemplatesApi::test_test_pdf_returns_real_pdf tests/test_message_builder.py::TestMime::test_attachment_pdf tests/test_message_builder.py::TestMime::test_attachment_pdf tests/test_message_builder.py::TestPdf::test_real_pdf_bytes tests/test_message_builder.py::TestPdf::test_real_pdf_bytes tests/test_message_builder.py::TestPdf::test_unicode_renders /usr/local/lib/python3.11/site-packages/pydyf/__init__.py:399: DeprecationWarning: text_matrix is deprecated, use set_text_matrix instead. warn(Stream.text_matrix.__doc__, DeprecationWarning) tests/test_api_recipients_subjects_templates.py::TestTemplatesApi::test_create_list_preview_duplicate_delete tests/test_message_builder.py::TestSanitization::test_script_neutralized tests/test_message_builder.py::TestSanitization::test_script_content_cannot_reexecute tests/test_message_builder.py::TestSanitization::test_style_and_links_kept tests/test_message_builder.py::TestSanitization::test_email_variant_matches_preview tests/test_message_builder.py::TestSanitization::test_table_markup_kept_for_invoice_layouts /usr/local/lib/python3.11/site-packages/bleach/sanitizer.py:166: NoCssSanitizerWarning: 'style' attribute specified, but css_sanitizer not set. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_send_one_task.py::TestGuardPaths::test_paused_campaign_short_circuits FAILED tests/test_send_one_task.py::TestGuardPaths::test_already_finalized_recipient_no_resend FAILED tests/test_send_one_task.py::TestGuardPaths::test_suppression_hit_at_send_time FAILED tests/test_send_one_task.py::TestGuardPaths::test_unauthorized_assigned_account_skips FAILED tests/test_send_one_task.py::TestGuardPaths::test_missing_template_perm_fails FAILED tests/test_send_one_task.py::TestGuardPaths::test_missing_oauth_token_perm_fails FAILED tests/test_send_one_task.py::TestSuccessPath::test_sent_end_to_end_with_mime_and_headers FAILED tests/test_send_one_task.py::TestSuccessPath::test_pdf_attachment_generated_and_sent FAILED tests/test_send_one_task.py::TestSuccessPath::test_plain_message_type_omits_html_part FAILED tests/test_send_one_task.py::TestRetryAndBackoff::test_temporary_error_retries_with_exponential_backoff FAILED tests/test_send_one_task.py::TestRetryAndBackoff::test_retry_loop_then_dead_letter_after_max_attempts FAILED tests/test_send_one_task.py::TestRetryAndBackoff::test_generic_connection_error_is_temporary FAILED tests/test_send_one_task.py::TestRetryAndBackoff::test_provider_refusal_without_exception_retries FAILED tests/test_send_one_task.py::TestPermanentFailures::test_permanent_403_perm_fails_no_retry FAILED tests/test_send_one_task.py::TestPermanentFailures::test_auth_failure_expires_account_and_pauses_campaign FAILED tests/test_send_one_task.py::TestPermanentFailures::test_quota_error_retries_and_marks_account_cooldown FAILED tests/test_send_one_task.py::TestThrottling::test_daily_limit_reached_pauses_campaign FAILED tests/test_send_one_task.py::TestThrottling::test_account_cooldown_reschedules FAILED tests/test_send_one_task.py::TestThrottling::test_per_account_rate_window_reschedules 19 failed, 282 passed, 39 warnings in 79.67s (0:01:19)