Opinions wanted…
The new SanicTestClient
uses requests-async
instead of aiohttp
. In the past, we got around having aiohttp
be a hard dependency by doing the import right inside the method.
I think we really have two options here: (1) we make requests-async
a hard dependency of Sanic (and not just pip install sanic[test]
; or (2) we break off testing.py
into a new repo. That new repo would become an extra dependency. What are your thoughts? @core-devs?
My argument for making it a project on its own would be to continue to keep Sanic core as lean and dependency free as it can be in production.