Skip to content

Commit

Permalink
Upgrade to pytest-httpx>=0.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 28, 2024
1 parent be2953e commit 758ff9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_long_description():
"test": [
"pytest",
"numpy",
"pytest-httpx",
"pytest-httpx>=0.33.0",
"cogapp",
"mypy>=1.10.0",
"black>=24.1.0",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ def test_templates_prompt_save(templates_path, args, expected_prompt, expected_e
None,
None,
"Error: Cannot use -t/--template and --system together",
marks=pytest.mark.httpx_mock(assert_all_responses_were_requested=False),
marks=pytest.mark.httpx_mock(),
),
pytest.param(
"prompt: 'Say $hello'",
[],
None,
None,
"Error: Missing variables: hello",
marks=pytest.mark.httpx_mock(assert_all_responses_were_requested=False),
marks=pytest.mark.httpx_mock(),
),
(
"prompt: 'Say $hello'",
Expand Down Expand Up @@ -185,4 +185,4 @@ def test_template_basic(
else:
assert result.exit_code == 1
assert result.output.strip() == expected_error
mocked_openai_chat.reset(assert_all_responses_were_requested=False)
mocked_openai_chat.reset()

0 comments on commit 758ff9a

Please sign in to comment.