Skip to content

Commit c50557c

Browse files
committed
Fix httpx_mock errors
1 parent cd5378c commit c50557c

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

tests/unit/test_auto_chapters.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ def test_auto_chapters_fails_without_punctuation(httpx_mock: HTTPXMock):
3434
# Check that the error was raised before any requests were made
3535
assert len(httpx_mock.get_requests()) == 0
3636

37-
# Inform httpx_mock that it's okay we didn't make any requests
38-
httpx_mock.reset(False)
39-
4037

4138
def test_auto_chapters_disabled_by_default(httpx_mock: HTTPXMock):
4239
"""

tests/unit/test_content_safety.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,3 @@ def test_content_safety_with_invalid_confidence_threshold(
229229

230230
# Check that the error was raised before any requests were made
231231
assert len(httpx_mock.get_requests()) == 0
232-
233-
# Inform httpx_mock that it's okay we didn't make any requests
234-
httpx_mock.reset(False)

tests/unit/test_redact_pii.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ def test_redact_pii_fails_without_policies(httpx_mock: HTTPXMock):
115115
# Check that the error was raised before any requests were made
116116
assert len(httpx_mock.get_requests()) == 0
117117

118-
# Inform httpx_mock that it's okay we didn't make any requests
119-
httpx_mock.reset(False)
120-
121118

122119
def test_redact_pii_params_excluded_when_disabled(httpx_mock: HTTPXMock):
123120
"""

tests/unit/test_summarization.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ def test_summarization_fails_without_required_field(
3737
# Check that the error was raised before any requests were made
3838
assert len(httpx_mock.get_requests()) == 0
3939

40-
# Inform httpx_mock that it's okay we didn't make any requests
41-
httpx_mock.reset(False)
42-
4340

4441
def test_summarization_disabled_by_default(httpx_mock: HTTPXMock):
4542
"""

0 commit comments

Comments
 (0)