feat: enhance mock database store with context manager support and improve cursor behavior
CI / lint-test-build (push) Failing after 52s

This commit is contained in:
2026-06-04 20:28:06 +02:00
parent 170f59eb89
commit df59f5ad7c
3 changed files with 26 additions and 2 deletions
+7
View File
@@ -12,7 +12,14 @@ def test_end_to_end_config_workflow():
"""Test complete configuration workflow."""
# Create mocks
settings = Mock(spec=Settings)
cursor = Mock()
cursor.fetchone.return_value = None
cursor.fetchall.return_value = []
cursor.execute.return_value = cursor
context = Mock()
context.__enter__.return_value = cursor
store = Mock(spec=DuckDBStore)
store.connect.return_value = context
audit_repo = Mock(spec=AuditRepository)
# Create service