Skip to content

Commit 5ed2ce6

Browse files
committed
Test cleanup failure on nontransactional profile path
1 parent ffcfb56 commit 5ed2ce6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_catalog_lifecycle.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ def fail_cleanup(*_args, **_kwargs):
184184
def fail_mutation(*_args, **_kwargs):
185185
raise RuntimeError("injected mutation failure")
186186

187+
# Exercise the non-transactional MySQL-wire compensation path while
188+
# retaining SQLite as the dependency-free test transport.
189+
monkeypatch.setattr(
190+
wide, "effective_profile", lambda _url, **_kwargs: (MYSQL, {}),
191+
)
187192
monkeypatch.setattr(wide, "_cleanup_import_state", fail_cleanup)
188193
monkeypatch.setattr(wide, "store_normative_dataset", fail_mutation)
189194
with pytest.raises(ImportRecoveryError) as error:

0 commit comments

Comments
 (0)