()
| 56 | |
| 57 | |
| 58 | def test_missing_status_and_different_items(): |
| 59 | a = MemoryStorage() |
| 60 | b = MemoryStorage() |
| 61 | |
| 62 | status = {} |
| 63 | item1 = Item('UID:1\nhaha') |
| 64 | item2 = Item('UID:1\nhoho') |
| 65 | a.upload(item1) |
| 66 | b.upload(item2) |
| 67 | with pytest.raises(SyncConflict): |
| 68 | sync(a, b, status) |
| 69 | assert not status |
| 70 | sync(a, b, status, conflict_resolution='a wins') |
| 71 | assert items(a) == items(b) == {item1.raw} |
| 72 | |
| 73 | |
| 74 | def test_read_only_and_prefetch(): |
nothing calls this directly
no test coverage detected