File: 001-fix-for-tests-py312.patch

package info (click to toggle)
python-respx 0.21.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 872 kB
  • sloc: python: 4,378; makefile: 17
file content (16 lines) | stat: -rw-r--r-- 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix for tests in Python 3.12.
 Fix for fixture 'respx_mock' not found error.
Forwarded: https://github.com/lundberg/respx/issues/274
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-09-13

--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -3,6 +3,7 @@ def test_respx_mock_fixture(testdir):
         """
         import httpx
         import pytest
+        from respx.plugin import respx_mock
 
         @pytest.fixture
         def some_fixture():