Skip to content

Commit 910317d

Browse files
author
Hugo Osvaldo Barrera
authored
Merge pull request pimutils#899 from pimutils/faster-tests
Faster tests
2 parents 87f3a59 + 29c2b6b commit 910317d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ dist
1414
docs/_build/
1515
vdirsyncer/version.py
1616
.hypothesis
17+
coverage.xml

tests/storage/__init__.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
from urllib.parse import unquote as urlunquote
66

77
import pytest
8-
from hypothesis import settings
98

109
from .. import assert_item_equals
1110
from .. import EVENT_TEMPLATE
1211
from .. import normalize_item
13-
from .. import printable_characters_strategy
1412
from .. import TASK_TEMPLATE
1513
from .. import VCARD_TEMPLATE
1614
from vdirsyncer import exceptions
@@ -297,10 +295,15 @@ def test_metadata(self, requires_metadata, s):
297295

298296
@pytest.mark.parametrize(
299297
"value",
300-
[None]
301-
+ [
302-
printable_characters_strategy.example()
303-
for _ in range(settings.get_profile(settings._current_profile).max_examples)
298+
[
299+
None,
300+
"",
301+
"Hello there!",
302+
"Österreich",
303+
"中国",
304+
"한글",
305+
"42a4ec99-b1c2-4859-b142-759112f2ca50",
306+
"فلسطين",
304307
],
305308
)
306309
def test_metadata_normalization(self, requires_metadata, s, value):

0 commit comments

Comments
 (0)