refactor: clean up imports and improve db_session fixture in test configuration

This commit is contained in:
grillazz
2025-12-28 18:44:31 +01:00
parent a24c47ab3f
commit 7b0c03f711
3 changed files with 4 additions and 5 deletions

View File

@@ -106,7 +106,6 @@ class Settings(BaseSettings):
path=self.POSTGRES_TEST_DB,
)
@computed_field
@property
def postgres_url(self) -> PostgresDsn:

View File

@@ -64,4 +64,4 @@ async def get_test_db() -> AsyncGenerator:
# Only log actual database-related issues, not response validation
if not isinstance(ex, ResponseValidationError):
await logger.aerror(f"Database-related error: {repr(ex)}")
raise # Re-raise to be handled by appropriate handlers
raise # Re-raise to be handled by appropriate handlers