mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-09 11:26:00 +00:00
Fix hypothesis metadata tests
This commit is contained in:
parent
96c90af1e3
commit
b9f3ca3581
1 changed files with 3 additions and 5 deletions
|
|
@ -6,6 +6,7 @@ import hypothesis.strategies as st
|
|||
import pytest
|
||||
|
||||
from vdirsyncer.metasync import MetaSyncConflict, metasync
|
||||
from vdirsyncer.storage.base import normalize_meta_value
|
||||
from vdirsyncer.storage.memory import MemoryStorage
|
||||
|
||||
from . import blow_up
|
||||
|
|
@ -88,11 +89,8 @@ def test_conflict_x_wins(wins):
|
|||
|
||||
|
||||
keys = st.text(min_size=1).filter(lambda x: x.strip() == x)
|
||||
|
||||
metadata = st.dictionaries(
|
||||
keys,
|
||||
st.text()
|
||||
)
|
||||
values = st.text().filter(lambda x: normalize_meta_value(x) == x)
|
||||
metadata = st.dictionaries(keys, values)
|
||||
|
||||
|
||||
@given(
|
||||
|
|
|
|||
Loading…
Reference in a new issue