mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Remove remove_hash_from_status
This causes too many problems and forces us to weaken further assumptions. Better to write separate migration tests, but I don't care.
This commit is contained in:
parent
f7c2aa5f81
commit
95c6be6aee
1 changed files with 0 additions and 9 deletions
|
|
@ -474,15 +474,6 @@ class SyncMachine(RuleBasedStateMachine):
|
||||||
def delete(self, storage, href):
|
def delete(self, storage, href):
|
||||||
assume(storage.items.pop(href, None))
|
assume(storage.items.pop(href, None))
|
||||||
|
|
||||||
@rule(status=Status, delete_from_b=st.booleans())
|
|
||||||
def remove_hash_from_status(self, status, delete_from_b):
|
|
||||||
assume(status)
|
|
||||||
for a, b in status.values():
|
|
||||||
if delete_from_b:
|
|
||||||
a = b
|
|
||||||
assume('hash' in a)
|
|
||||||
del a['hash']
|
|
||||||
|
|
||||||
@rule(
|
@rule(
|
||||||
status=Status,
|
status=Status,
|
||||||
a=Storage, b=Storage,
|
a=Storage, b=Storage,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue