Skip to content

ASGI applications support #266

@azmeuk

Description

@azmeuk

Webtest cannot handle async frameworks such as starlette or quart.
There are alternative test clients out there: starlette and quart provide their own, and there are a few unmaintained libraries on Pypi too. However none of those libs have feature parity with webtest, among other thing I miss the handy form management.

There is a project called webtest-asgi that brings some compatibility, but it is not really asynchronous. This is mostly a synchronous compatibility layer for Webtest and ASGI applications.
While this could be OK as a first step for migration, this is too bad to not benefit from the asynchronicity when the test suite is actually i/o bound.

  • Is async web frameworks support something that could be implemented in Webtest?
  • If yes, would a PR be welcome?
  • If yes, is there any implementation advice/direction to take?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions