Skip to content

PendingDeprecationWarning: Please use import python_multipart instead #36

@simonw

Description

@simonw

Getting this from pytest:

================================================================================================== warnings summary ===================================================================================================
asgi_csrf.py:5
  /Users/simon/Dropbox/Development/asgi-csrf/asgi_csrf.py:5: PendingDeprecationWarning: Please use `import python_multipart` instead.
    from multipart import FormParser

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, 63 warnings in 0.09s ===========================================================================================

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