Convert server prefix to str for Mock tests
This commit is contained in:
parent
645a6dd136
commit
ec83556da7
1 changed files with 4 additions and 2 deletions
|
|
@ -93,8 +93,10 @@ def customise_server(
|
||||||
lt.logs.configure_thing_logger(logging.DEBUG)
|
lt.logs.configure_thing_logger(logging.DEBUG)
|
||||||
|
|
||||||
# Add an endpoint to get the logs - (directly calling the FastAPI decorator)
|
# Add an endpoint to get the logs - (directly calling the FastAPI decorator)
|
||||||
server.app.get(server._api_prefix.rstrip("/") + "/log/")(retrieve_log)
|
server.app.get(str(server._api_prefix.rstrip("/")) + "/log/")(retrieve_log)
|
||||||
server.app.get(server._api_prefix.rstrip("/") + "/logfile/")(retrieve_log_from_file)
|
server.app.get(str(server._api_prefix.rstrip("/")) + "/logfile/")(
|
||||||
|
retrieve_log_from_file
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def serve_from_cli(argv: Optional[list[str]] = None) -> None:
|
def serve_from_cli(argv: Optional[list[str]] = None) -> None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue