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

Function test_invalid_conflict_resolution

tests/unit/test_metasync.py:73–79  ·  view source on GitHub ↗
(conflict_state)

Source from the content-addressed store, hash-verified

71
72
73def test_invalid_conflict_resolution(conflict_state):
74 a, b, status = conflict_state
75
76 with pytest.raises(UserError) as excinfo:
77 metasync(a, b, status, keys=['foo'], conflict_resolution='foo')
78
79 assert 'Invalid conflict resolution setting' in str(excinfo.value)
80
81
82def test_warning_on_custom_conflict_commands(conflict_state, monkeypatch):

Callers

nothing calls this directly

Calls 1

metasyncFunction · 0.90

Tested by

no test coverage detected