Closed kloczek closed 4 weeks ago
Looks like we're missing some pytest markers. I can get those fixed.
Do you want me to test https://github.com/getsentry/responses/pull/707? 🤔
Do you want me to test https://github.com/getsentry/responses/pull/707? 🤔
If you want to. My next step would be to do a release for 0.25.1. If that doesn't build again, we'll have a longer feedback loop to getting a build that does work.
Thank you @kloczek That looks much better. I'll get a release tagged.
0Just test ed 0.25.2 and all looks good. I see only one pytest warning.
===================================================================================== warnings summary ======================================================================================
responses/tests/test_matchers.py: 2 warnings
responses/tests/test_responses.py: 8 warnings
/home/tkloczko/rpmbuild/BUILD/responses-0.25.2/responses/__init__.py:436: DeprecationWarning: Argument 'match_querystring' is deprecated. Use 'responses.matchers.query_param_matcher' or 'responses.matchers.query_string_matcher'
warn(
responses/tests/test_responses.py::test_response_cookies_session[True-True]
responses/tests/test_responses.py::test_response_cookies_session[True-False]
responses/tests/test_responses.py::test_response_cookies_session[True-None]
responses/tests/test_responses.py::test_response_cookies_session[False-True]
responses/tests/test_responses.py::test_response_cookies_session[False-False]
responses/tests/test_responses.py::test_response_cookies_session[False-None]
responses/tests/test_responses.py::test_response_filebody
responses/tests/test_responses.py::test_use_stream_twice_to_double_raw_io
/home/tkloczko/rpmbuild/BUILD/responses-0.25.2/responses/__init__.py:609: DeprecationWarning: stream argument is deprecated. Use stream parameter in request directly
warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================================= 215 passed, 18 warnings in 41.65s =============================================================================
Describe the bug
Despite fact that in build env is installed
pytest-asyncio
pytest fails in two units complaining about missing suitable plugin for async framework.Additional context
List of installed modules in build env:
```console Package Version ------------------ -------- build 1.0.3 charset-normalizer 3.3.2 cppclean 0.13 distro 1.9.0 dnf 4.19.0 exceptiongroup 1.1.3 gpg 1.23.2 idna 3.6 importlib_metadata 7.0.1 iniconfig 2.0.0 installer 0.7.0 libdnf 0.73.0 MarkupSafe 2.1.3 mock 5.1.0 packaging 23.2 pluggy 1.3.0 pyproject_hooks 1.0.0 pytest 8.0.0 pytest-asyncio 0.23.5 pytest_httpserver 1.0.9 python-dateutil 2.8.2 PyYAML 6.0.1 requests 2.31.0 setuptools 69.1.0 six 1.16.0 testpath 0.6.0 toml 0.10.2 tomli 2.0.1 tomli_w 1.0.0 urllib3 1.26.18 Werkzeug 3.0.1 wheel 0.42.0 zipp 3.17.0 ```Version of
responses
0.25.0
Steps to Reproduce
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Expected Result
pytest should not fail.
Actual Result
Here is pytest output:
```console + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-responses-0.25.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-responses-0.25.0-4.fc35.x86_64/usr/lib/python3.8/site-packages + /usr/bin/pytest -ra -m 'not network' ==================================================================================== test session starts ==================================================================================== platform linux -- Python 3.8.18, pytest-8.0.0, pluggy-1.3.0 rootdir: /home/tkloczko/rpmbuild/BUILD/responses-0.25.0 configfile: tox.ini plugins: asyncio-0.23.5, pytest_httpserver-1.0.9 asyncio: mode=strict collected 212 items responses/tests/test_matchers.py .................................. [ 16%] responses/tests/test_multithreading.py .......... [ 20%] responses/tests/test_recorder.py .... [ 22%] responses/tests/test_registries.py ...F..... [ 26%] responses/tests/test_responses.py ..................................................................................................................................F................ [ 96%] ........ [100%] ========================================================================================= FAILURES ========================================================================================== ____________________________________________________________________________________ test_registry_async ____________________________________________________________________________________ cls =Please let me know if you need more details or want me to perform some diagnostics.