MCPcopy
hub / github.com/pimutils/vdirsyncer / test_warning_on_custom_conflict_commands

Function test_warning_on_custom_conflict_commands

tests/unit/test_metasync.py:82–91  ·  view source on GitHub ↗
(conflict_state, monkeypatch)

Source from the content-addressed store, hash-verified

80
81
82def test_warning_on_custom_conflict_commands(conflict_state, monkeypatch):
83 a, b, status = conflict_state
84 warnings = []
85 monkeypatch.setattr(logger, 'warning', warnings.append)
86
87 with pytest.raises(MetaSyncConflict):
88 metasync(a, b, status, keys=['foo'],
89 conflict_resolution=lambda *a, **kw: None)
90
91 assert warnings == ['Custom commands don\'t work on metasync.']
92
93
94def test_conflict_same_content():

Callers

nothing calls this directly

Calls 1

metasyncFunction · 0.90

Tested by

no test coverage detected