mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-10-09 10:27:13 +08:00
Fix mock
This commit is contained in:
parent
b4c650b56e
commit
6557cc9b1b
@ -234,6 +234,8 @@ class UserManager():
|
|||||||
- file: The target file path (URL encoded if necessary).
|
- file: The target file path (URL encoded if necessary).
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
- 400: If 'file' parameter is missing.
|
||||||
|
- 403: If the requested path is not allowed.
|
||||||
- 409: If overwrite=false and the file already exists.
|
- 409: If overwrite=false and the file already exists.
|
||||||
- 200: JSON response with either:
|
- 200: JSON response with either:
|
||||||
- Full file information (if full_info=true)
|
- Full file information (if full_info=true)
|
||||||
|
|||||||
@ -14,7 +14,7 @@ def user_manager(tmp_path):
|
|||||||
um = UserManager()
|
um = UserManager()
|
||||||
um.get_request_user_filepath = lambda req, file, **kwargs: os.path.join(
|
um.get_request_user_filepath = lambda req, file, **kwargs: os.path.join(
|
||||||
tmp_path, file
|
tmp_path, file
|
||||||
)
|
) if file else tmp_path
|
||||||
return um
|
return um
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user