from hypothesis.strategies import booleans
from hypothesis.strategies import characters
from hypothesis.strategies import datetimes
+from hypothesis.strategies import deferred
+from hypothesis.strategies import dictionaries
from hypothesis.strategies import integers
from hypothesis.strategies import just
+from hypothesis.strategies import lists
from hypothesis.strategies import none
from hypothesis.strategies import one_of
from hypothesis.strategies import text
uuids(),
datetimes(),
)
+everything_st = deferred(
+ lambda: any_st |
+ lists(everything_st, max_size=4) |
+ dictionaries(mapkey_st, everything_st, max_size=4)
+)
from unittest import TestCase
from hypothesis import given
-from hypothesis.strategies import deferred
-from hypothesis.strategies import dictionaries
-from hypothesis.strategies import lists
from pyac import dumps
from pyac import loads
-from tests.strategies import any_st
from tests.strategies import junk_st
-from tests.strategies import mapkey_st
-
-
-everything_st = deferred(
- lambda: any_st |
- lists(everything_st, max_size=4) |
- dictionaries(mapkey_st, everything_st, max_size=4)
-)
+from tests.strategies import everything_st
class TestEverything(TestCase):