Skip to content

0.21.1: pytest warnings #262

@kloczek

Description

@kloczek

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 ==================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions