Skip to content

Commit

Permalink
Add Hypothesis note
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Feb 5, 2022
1 parent 9cb2302 commit 93dcd98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import attr
from attr import NOTHING, Factory
from attr._make import _CountingAttr
from hypothesis import note
from hypothesis.strategies import (
DrawFn,
SearchStrategy,
Expand Down Expand Up @@ -164,10 +165,11 @@ def key(t):
for i, a in enumerate(attrs):
a.counter = i
vals = tuple((a[1]) for a in attrs_and_strat)
note(f"Class fields: {attrs}")
return tuples(
just(
make_class(
"HypClass",
"HypAttrsClass",
OrderedDict(zip(gen_attr_names(), attrs)),
frozen=frozen,
)
Expand Down

0 comments on commit 93dcd98

Please sign in to comment.