mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-03 10:25:51 +00:00
Add test re #657
This commit is contained in:
parent
e305869fac
commit
0d47e06d89
1 changed files with 12 additions and 0 deletions
|
|
@ -660,3 +660,15 @@ def test_rollback(error_callback):
|
|||
else:
|
||||
with pytest.raises(ActionIntentionallyFailed):
|
||||
sync(a, b, status=status, conflict_resolution='a wins')
|
||||
|
||||
|
||||
def test_duplicate_hrefs():
|
||||
a = MemoryStorage()
|
||||
b = MemoryStorage()
|
||||
a.list = lambda: [('a', 'a')] * 3
|
||||
a.items['a'] = ('a', Item('UID:a'))
|
||||
|
||||
status = {}
|
||||
sync(a, b, status)
|
||||
with pytest.raises(AssertionError):
|
||||
sync(a, b, status)
|
||||
|
|
|
|||
Loading…
Reference in a new issue