Quantcast
Viewing latest article 14
Browse Latest Browse All 24

Considering ASGI support

@ahopkins wrote:

Okay … so I did some work on the test client with requests-async.

Boiling it down, it does not look like we can switch our test client to only use it and replace aiohttp. Why? Because it does not support streaming requests.

Since we have been talking about doing some work on the testing suite (potentially moving testing.py out of the core module, and also adopting pytest-sanic), what about starting to move this direction?

What I am proposing is to leave the testing architecture as is for the next release, but adding a new repo: huge-success/sanic-test-client. Inside that, would be SanicASGITestClient.

Eventually, we could then work on breaking testing.py off and into this package and also look into what it would mean (if @yunstanford agrees) to adopt pytest-sanic under the community org.


Opinions? Thoughts? @core-devs?

Read full topic


Viewing latest article 14
Browse Latest Browse All 24

Trending Articles