Open dave42w opened 1 week ago
Hey @dave42w 👋
I agree with all of them!
Yes
While looking into this I also noticed that we do have some unit tests (that should be obvious to me). However, our documentation never asks us to run these. Can we change the instructions from pytest integration_tests to pytest it still runs all the integration tests but also the unit tests.
Yes!
See this https://github.com/sparckles/Robyn/pull/889 and the links it contains.
Bug Description
In this PR https://github.com/sparckles/Robyn/pull/1023 I first corrected the arguments for the SubRouter HTTP methods (Get, Post etc) as they were out of sync with the Robyn class - they did not have the auth_required argument.
I'm now pretty sure that there is a problem in
Robyn.configure_authentication
When a SubRouter is created the authentication_handler is none. However,Robyn.configure_authentication
does not seem to set the authentication_handler for the SubRoutes, I'm also not sure if it is doing so for websockets or openapi endpoints (or even if it should)That highlighted multiple testing issues
pytest integration_tests
topytest
it still runs all the integration tests but also the unit tests.