File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ from .untyped import gen_attr_names
2
+
3
+
4
+ def test_gen_attr_names ():
5
+ """We can generate a lot of attribute names."""
6
+ assert len (list (gen_attr_names ())) == 697
7
+
8
+ # No duplicates!
9
+ assert len (list (gen_attr_names ())) == len (set (gen_attr_names ()))
Original file line number Diff line number Diff line change 27
27
28
28
from ._compat import is_py311_plus
29
29
from .typeddicts import (
30
+ gen_typeddict_attr_names ,
30
31
generic_typeddicts ,
31
32
simple_typeddicts ,
32
33
simple_typeddicts_with_extra_keys ,
33
34
)
34
35
35
36
37
+ def test_gen_attr_names ():
38
+ """We can generate a lot of attribute names."""
39
+ assert len (list (gen_typeddict_attr_names ())) == 697
40
+
41
+ # No duplicates!
42
+ assert len (list (gen_typeddict_attr_names ())) == len (set (gen_typeddict_attr_names ()))
43
+
44
+
36
45
def mk_converter (detailed_validation : bool = True ) -> Converter :
37
46
"""We can't use function-scoped fixtures with Hypothesis strats."""
38
47
c = Converter (detailed_validation = detailed_validation )
You can’t perform that action at this time.
0 commit comments