Resolves the last issue with pytest-httpx

This commit is contained in:
Trenton H 2024-09-30 13:53:40 -07:00
parent 76a56f7b01
commit 6ad581dc3c
2 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,6 @@ repos:
rev: v6.2.1 rev: v6.2.1
hooks: hooks:
- id: beautysh - id: beautysh
language_version: '3.10'
additional_dependencies: additional_dependencies:
- setuptools - setuptools
args: args:

View File

@ -497,6 +497,7 @@ class TestParser:
assert mail_parser.archive_path is not None assert mail_parser.archive_path is not None
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
def test_generate_pdf_html_email( def test_generate_pdf_html_email(
self, self,
httpx_mock: HTTPXMock, httpx_mock: HTTPXMock,
@ -575,6 +576,7 @@ class TestParser:
with pytest.raises(ParseError): with pytest.raises(ParseError):
mail_parser.parse(html_email_file, "message/rfc822") mail_parser.parse(html_email_file, "message/rfc822")
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
def test_generate_pdf_html_email_merge_failure( def test_generate_pdf_html_email_merge_failure(
self, self,
httpx_mock: HTTPXMock, httpx_mock: HTTPXMock,