mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix useless test
This commit is contained in:
parent
cd31e66798
commit
3df104a1f0
1 changed files with 6 additions and 4 deletions
|
|
@ -43,7 +43,6 @@ def test_missing_status():
|
||||||
|
|
||||||
|
|
||||||
def test_missing_status_and_different_items():
|
def test_missing_status_and_different_items():
|
||||||
return # TODO
|
|
||||||
a = MemoryStorage()
|
a = MemoryStorage()
|
||||||
b = MemoryStorage()
|
b = MemoryStorage()
|
||||||
status = {}
|
status = {}
|
||||||
|
|
@ -51,9 +50,12 @@ def test_missing_status_and_different_items():
|
||||||
item2 = Item(u'UID:1\nhoho')
|
item2 = Item(u'UID:1\nhoho')
|
||||||
a.upload(item1)
|
a.upload(item1)
|
||||||
b.upload(item2)
|
b.upload(item2)
|
||||||
sync(a, b, status)
|
with pytest.raises(exceptions.SyncConflict):
|
||||||
assert status
|
sync(a, b, status)
|
||||||
assert_item_equals(a.get('1.txt')[0], b.get('1.txt')[0])
|
assert not status
|
||||||
|
sync(a, b, status, conflict_resolution='a wins')
|
||||||
|
assert_item_equals(item1, b.get('1.txt')[0])
|
||||||
|
assert_item_equals(item1, a.get('1.txt')[0])
|
||||||
|
|
||||||
|
|
||||||
def test_upload_and_update():
|
def test_upload_and_update():
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue