David Brochart
David Brochart
I don't think it's possible, but since you're also using FastAPI you could register your handlers using [asphalt-web](https://asphalt-web.readthedocs.io).
Jupyverse is now based on [fps](https://github.com/jupyter-server/fps). Feel free to open a new issue.
Should all tests also be run with the `AsyncTestClient`?
Any idea about the best way to factorize code between `TestClient` and `AsyncTestClient`?
> No, that would be too huge of a PR (but also, I don't think we should do it). If we can parameterize tests so that they use both `TestClient`...
I was thinking about mixin classes that the test client and the async test client would use, but I'm not sure it's worth it. It would make the code more...
Hmm it looks like https://github.com/vinissimus/async-asgi-testclient is just what I needed.
I started looking at the jupyter-client tests, [test_start_sequence_kernels](https://github.com/jupyter/jupyter_client/blob/19dbf1b69247a1cc14b5bb1e4e7523f5b52380ae/tests/test_kernelmanager.py#L324) at least will be fixed by https://github.com/agronholm/anyio/pull/714.
Yes I think so.
As mentioned [here](https://github.com/jupyterlab/jupyterlab/issues/13339#issuecomment-1798186873), I'm working in that direction in https://github.com/jupyter-server/jupyverse/pull/364.