Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.21.1: pytest warnings #262

Open
kloczek opened this issue Mar 28, 2024 · 0 comments · May be fixed by #267
Open

0.21.1: pytest warnings #262

kloczek opened this issue Mar 28, 2024 · 0 comments · May be fixed by #267

Comments

@kloczek
Copy link

kloczek commented Mar 28, 2024

python 3,.9.18 and pytest 8.1.1.

===================================================================================== warnings summary ======================================================================================
../../../../../usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:225
  /usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:225: PytestDeprecationWarning: mocked_foo is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
    warnings.warn(

../../../../../usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:225
  /usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:225: PytestDeprecationWarning: mocked_ham is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
    warnings.warn(

tests/test_api.py::test_http_methods
  /usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:753: DeprecationWarning: The event_loop fixture provided by pytest-asyncio has been redefined in
  /home/tkloczko/rpmbuild/BUILD/respx-0.21.1/respx/fixtures.py:8
  Replacing the event_loop fixture with a custom implementation is deprecated
  and will lead to errors in the future.
  If you want to request an asyncio event loop with a scope other than function
  scope, use the "scope" argument to the asyncio mark when marking the tests.
  If you want to return different types of event loops, use the event_loop_policy
  fixture.

    warnings.warn(

tests/test_mock.py::test_proxies
  /usr/lib/python3.9/site-packages/httpx/_client.py:671: DeprecationWarning: The 'proxies' argument is now deprecated. Use 'proxy' or 'mounts' instead.
    warnings.warn(message, DeprecationWarning)

tests/test_mock.py::test_proxies
  /usr/lib/python3.9/site-packages/httpx/_client.py:1417: DeprecationWarning: The 'proxies' argument is now deprecated. Use 'proxy' or 'mounts' instead.
    warnings.warn(message, DeprecationWarning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
@lundberg lundberg linked a pull request Apr 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant