Skip to content

Commit 93dcd98

Browse files
committed
Add Hypothesis note
1 parent 9cb2302 commit 93dcd98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/metadata/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import attr
2626
from attr import NOTHING, Factory
2727
from attr._make import _CountingAttr
28+
from hypothesis import note
2829
from hypothesis.strategies import (
2930
DrawFn,
3031
SearchStrategy,
@@ -164,10 +165,11 @@ def key(t):
164165
for i, a in enumerate(attrs):
165166
a.counter = i
166167
vals = tuple((a[1]) for a in attrs_and_strat)
168+
note(f"Class fields: {attrs}")
167169
return tuples(
168170
just(
169171
make_class(
170-
"HypClass",
172+
"HypAttrsClass",
171173
OrderedDict(zip(gen_attr_names(), attrs)),
172174
frozen=frozen,
173175
)

0 commit comments

Comments
 (0)