mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Fix testcase
This commit is contained in:
parent
b694c3f60c
commit
5f80b9f3f6
1 changed files with 8 additions and 7 deletions
|
|
@ -194,14 +194,15 @@ def test_conflict_resolution_new_etags_without_changes():
|
||||||
href_a, etag_a = a.upload(item)
|
href_a, etag_a = a.upload(item)
|
||||||
href_b, etag_b = b.upload(item)
|
href_b, etag_b = b.upload(item)
|
||||||
status = {'1': (href_a, 'BOGUS_a', href_b, 'BOGUS_b')}
|
status = {'1': (href_a, 'BOGUS_a', href_b, 'BOGUS_b')}
|
||||||
|
|
||||||
sync(a, b, status)
|
sync(a, b, status)
|
||||||
assert status == {'1': ({
|
|
||||||
'href': href_a,
|
(ident, (status_a, status_b)), = status.items()
|
||||||
'etag': etag_a,
|
assert ident == '1'
|
||||||
}, {
|
assert status_a['href'] == href_a
|
||||||
'href': href_b,
|
assert status_a['etag'] == etag_a
|
||||||
'etag': etag_b
|
assert status_b['href'] == href_b
|
||||||
})}
|
assert status_b['etag'] == etag_b
|
||||||
|
|
||||||
|
|
||||||
def test_uses_get_multi(monkeypatch):
|
def test_uses_get_multi(monkeypatch):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue