Skip to content

Fix a bunch more DeprecationWarning #37

@simonw

Description

@simonw
================================================================================================== warnings summary ===================================================================================================
tests/test_asgi_csrf.py: 35 warnings
  /Users/simon/Dropbox/Development/asgi-csrf/.venv/lib/python3.10/site-packages/httpx/_client.py:1437: DeprecationWarning: The 'app' shortcut is now deprecated. Use the explicit style 'transport=ASGITransport(app=...)' instead.
    warnings.warn(message, DeprecationWarning)

tests/test_asgi_csrf.py: 27 warnings
  /Users/simon/Dropbox/Development/asgi-csrf/.venv/lib/python3.10/site-packages/httpx/_client.py:1570: DeprecationWarning: Setting per-request cookies=<...> is being deprecated, because the expected behaviour on cookie persistence is ambiguous. Set cookies directly on the client instance instead.
    warnings.warn(message, DeprecationWarning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================================================================== 48 passed, 62 warnings in 0.17s ===========================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions