mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
commit
910317d4bb
2 changed files with 10 additions and 6 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -14,3 +14,4 @@ dist
|
||||||
docs/_build/
|
docs/_build/
|
||||||
vdirsyncer/version.py
|
vdirsyncer/version.py
|
||||||
.hypothesis
|
.hypothesis
|
||||||
|
coverage.xml
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,10 @@ from urllib.parse import quote as urlquote
|
||||||
from urllib.parse import unquote as urlunquote
|
from urllib.parse import unquote as urlunquote
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from hypothesis import settings
|
|
||||||
|
|
||||||
from .. import assert_item_equals
|
from .. import assert_item_equals
|
||||||
from .. import EVENT_TEMPLATE
|
from .. import EVENT_TEMPLATE
|
||||||
from .. import normalize_item
|
from .. import normalize_item
|
||||||
from .. import printable_characters_strategy
|
|
||||||
from .. import TASK_TEMPLATE
|
from .. import TASK_TEMPLATE
|
||||||
from .. import VCARD_TEMPLATE
|
from .. import VCARD_TEMPLATE
|
||||||
from vdirsyncer import exceptions
|
from vdirsyncer import exceptions
|
||||||
|
|
@ -297,10 +295,15 @@ class StorageTests:
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"value",
|
"value",
|
||||||
[None]
|
[
|
||||||
+ [
|
None,
|
||||||
printable_characters_strategy.example()
|
"",
|
||||||
for _ in range(settings.get_profile(settings._current_profile).max_examples)
|
"Hello there!",
|
||||||
|
"Österreich",
|
||||||
|
"中国",
|
||||||
|
"한글",
|
||||||
|
"42a4ec99-b1c2-4859-b142-759112f2ca50",
|
||||||
|
"فلسطين",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_metadata_normalization(self, requires_metadata, s, value):
|
def test_metadata_normalization(self, requires_metadata, s, value):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue