Skip to content

Commit

Permalink
chore: minor docstring changes | [#197]
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioMrtz committed Aug 14, 2024
1 parent f2ecfc8 commit 0b11aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/app/database/DatabaseTestingConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def _get_mongo_client(self): # noqa: ANN202
"""Get mock Mongo client class
Returns:
Any: the mock Mongo client class
MongoClientMock: the mock Mongo client class
"""
enable_gridfs_integration()
return MongoClientMock
Expand Down
2 changes: 2 additions & 0 deletions Backend/app/database/database_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class DatabaseCollection(StrEnum):


def __is_connection__init__(func: Callable): # noqa: ANN202
"""Check database connection is initialized"""

@wraps(func)
def wrapper(*args, **kwargs): # noqa: ANN202
if BaseDatabaseConnection.connection is not None:
Expand Down

0 comments on commit 0b11aa2

Please sign in to comment.