We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78e891f commit e709849Copy full SHA for e709849
1 file changed
osbot_fast_api/api/Fast_API.py
@@ -102,9 +102,9 @@ def app_kwargs(self, **kwargs):
102
def app_router(self):
103
return self.app().router
104
105
- def client(self):
+ def client(self, **kwargs):
106
from starlette.testclient import TestClient # moved here for performance reasons
107
- return TestClient(self.app())
+ return TestClient(self.app(), **kwargs)
108
109
def config__no_default_routes(self): self.config.default_routes = False ; return self
110
def config__no_api_key (self): self.config.enable_api_key = False ; return self
0 commit comments