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

Function test_partial_sync_ignore

tests/unit/sync/test_sync.py:103–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101
102
103def test_partial_sync_ignore():
104 a = MemoryStorage()
105 b = MemoryStorage()
106 status = {}
107
108 item0 = Item('UID:0\nhehe')
109 a.upload(item0)
110 b.upload(item0)
111
112 b.read_only = True
113
114 item1 = Item('UID:1\nhaha')
115 a.upload(item1)
116
117 sync(a, b, status, partial_sync='ignore')
118 sync(a, b, status, partial_sync='ignore')
119
120 assert items(a) == {item0.raw, item1.raw}
121 assert items(b) == {item0.raw}
122
123
124def test_partial_sync_ignore2():

Callers

nothing calls this directly

Calls 5

uploadMethod · 0.95
MemoryStorageClass · 0.90
ItemClass · 0.90
itemsFunction · 0.85
syncFunction · 0.70

Tested by

no test coverage detected