-
I am trying to test a uvicorn server and I was following #1103 on setting up the testing ecosystem. This is my
whereas my
When I run
I am not sure whether this is the best way to run tests for uvicorn or is there some other method to test uvicorn server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
if you want to test your endpoints you have several options:
if you really want to run uvicorn during your tests, which you probably dont most of the time, you can either run it in a thread like you did or look at our test suite here Lines 9 to 18 in b8e65e4 |
Beta Was this translation helpful? Give feedback.
if you want to test your endpoints you have several options:
if you really want to run uvicorn during your tests, which you probably dont most of the time, you can either run it in a thread like you did or look at our test suite here
uvicorn/tests/utils.py
Lines 9 to 18 in b8e65e4