mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
26 lines
401 B
Python
26 lines
401 B
Python
from hypothesis import given
|
|
from hypothesis.strategies import (
|
|
binary,
|
|
booleans,
|
|
complex_numbers,
|
|
floats,
|
|
integers,
|
|
none,
|
|
one_of,
|
|
text
|
|
)
|
|
|
|
from vdirsyncer.cli.utils import coerce_native
|
|
|
|
|
|
@given(one_of(
|
|
binary(),
|
|
booleans(),
|
|
complex_numbers(),
|
|
floats(),
|
|
integers(),
|
|
none(),
|
|
text()
|
|
))
|
|
def test_coerce_native_fuzzing(s):
|
|
coerce_native(s)
|