File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ types:
31
31
test : types
32
32
@echo " Running Python tests"
33
33
uv pip uninstall pook || true
34
- export VIRTUAL_ENV=.venv ; .venv/bin/wait-for-it --service httpbin.local:443 --service localhost:6379 --timeout 5 -- .venv/bin/pytest
34
+ .venv/bin/wait-for-it --service httpbin.local:443 --service localhost:6379 --timeout 5 -- .venv/bin/pytest
35
35
uv pip install pook && .venv/bin/pytest tests/test_pook.py && uv pip uninstall pook
36
36
@echo " "
37
37
38
38
safetest :
39
- export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; make test
39
+ export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; .venv/bin/pytest
40
40
41
41
publish : clean install-test-requirements
42
42
uv run python3 -m build --sdist --wheel .
Original file line number Diff line number Diff line change @@ -222,6 +222,7 @@ def test_patch(
222
222
223
223
224
224
@pytest .mark .skipif (not psutil .POSIX , reason = "Uses a POSIX-only API to test" )
225
+ @pytest .mark .skipif ('os.getenv("SKIP_TRUE_HTTP", False)' )
225
226
@pytest .mark .asyncio
226
227
async def test_no_dangling_fds ():
227
228
url = "http://httpbin.local/ip"
Original file line number Diff line number Diff line change @@ -158,9 +158,11 @@ def setUp(self):
158
158
self .rclient = redis .StrictRedis ()
159
159
160
160
def mocketize_setup (self ):
161
+ Entry .register_response ("CLIENT SETINFO LIB-NAME redis-py" , OK )
162
+ Entry .register_response (f"CLIENT SETINFO LIB-VER { redis .__version__ } " , OK )
161
163
Entry .register_response ("FLUSHDB" , OK )
162
164
self .rclient .flushdb ()
163
- self .assertEqual (len (Mocket .request_list ()), 1 )
165
+ self .assertEqual (len (Mocket .request_list ()), 3 )
164
166
Mocket .reset ()
165
167
166
168
@mocketize
You can’t perform that action at this time.
0 commit comments