Add unit tests for models and services
- Implemented unit tests for Object model including folder and file creation, properties, and path retrieval. - Added unit tests for Setting model covering creation, unique constraints, and type enumeration. - Created unit tests for User model focusing on user creation, uniqueness, and group relationships. - Developed unit tests for Login service to validate login functionality, including 2FA and token generation. - Added utility tests for JWT creation and verification, ensuring token integrity and expiration handling. - Implemented password utility tests for password generation, hashing, and TOTP verification.
This commit is contained in:
@@ -118,7 +118,7 @@ def router_object_copy() -> ResponseBase:
|
||||
Copy an object endpoint.
|
||||
|
||||
Returns:
|
||||
ResponseModel: A model containing the response data for the object copy.
|
||||
ResponseBase: A model containing the response data for the object copy.
|
||||
"""
|
||||
pass
|
||||
|
||||
@@ -133,7 +133,7 @@ def router_object_rename() -> ResponseBase:
|
||||
Rename an object endpoint.
|
||||
|
||||
Returns:
|
||||
ResponseModel: A model containing the response data for the object rename.
|
||||
ResponseBase: A model containing the response data for the object rename.
|
||||
"""
|
||||
pass
|
||||
|
||||
@@ -151,6 +151,6 @@ def router_object_property(id: str) -> ResponseBase:
|
||||
id (str): The ID of the object to retrieve properties for.
|
||||
|
||||
Returns:
|
||||
ResponseModel: A model containing the response data for the object properties.
|
||||
ResponseBase: A model containing the response data for the object properties.
|
||||
"""
|
||||
pass
|
||||
Reference in New Issue
Block a user