Skip to content

Commit 2449f58

Browse files
committed
Fixed test for latest pytest-httpx
1 parent 18588b8 commit 2449f58

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_keys.py

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_keys_list(monkeypatch, tmpdir, args):
5252
assert result2.output.strip() == "openai"
5353

5454

55+
@pytest.mark.httpx_mock(can_send_already_matched_responses=True)
5556
def test_uses_correct_key(mocked_openai_chat, monkeypatch, tmpdir):
5657
user_dir = tmpdir / "user-dir"
5758
pathlib.Path(user_dir).mkdir()

tests/test_templates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ def test_template_basic(
183183
else:
184184
assert result.exit_code == 1
185185
assert result.output.strip() == expected_error
186-
mocked_openai_chat.reset(assert_all_responses_were_requested=False)
186+
mocked_openai_chat.reset()

0 commit comments

Comments
 (0)