Skip to content

Commit 0d24d59

Browse files
committed
Cover Dolt operational driver eligibility
1 parent 2e2e8c9 commit 0d24d59

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎tests/test_sql_profiles.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,3 +634,14 @@ def test_effective_profile_rechecks_driver_after_dolt_identity(monkeypatch) -> N
634634
effective_profile(
635635
"mariadb+mariadbconnector://user@host/database",
636636
)
637+
638+
def test_dolt_operational_write_flag_requires_claimed_driver() -> None:
639+
assert capabilities.dolt_operational_write_enabled(
640+
{"driver_eligible": True}, declaration_matched=True,
641+
) is True
642+
assert capabilities.dolt_operational_write_enabled(
643+
{"driver_eligible": False}, declaration_matched=True,
644+
) is False
645+
assert capabilities.dolt_operational_write_enabled(
646+
{"driver_eligible": True}, declaration_matched=False,
647+
) is False

0 commit comments

Comments
 (0)