()
| 101 | |
| 102 | |
| 103 | def 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 | |
| 124 | def test_partial_sync_ignore2(): |
nothing calls this directly
no test coverage detected