Refactor test cases for improved readability and consistency
- Adjusted function signatures in various test files to enhance clarity by aligning parameters. - Updated patching syntax for better readability across test cases. - Improved formatting and spacing in test assertions and mock setups. - Ensured consistent use of async/await patterns in async test functions. - Enhanced comments for better understanding of test intentions.
This commit is contained in:
@@ -43,7 +43,9 @@ class BaseRepository[ModelType]:
|
||||
return result.first()
|
||||
except Exception:
|
||||
logger.exception(
|
||||
"Failed to get %s by ID: %s", self.model.__name__, entity_id,
|
||||
"Failed to get %s by ID: %s",
|
||||
self.model.__name__,
|
||||
entity_id,
|
||||
)
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user