Skip to content

Commit 49b82df

Browse files
[STYLE] Apply improvements from re-review (- WIP PR #325 -)
* Update `tests/test_fuzz.py` with improvements.
1 parent 8b40613 commit 49b82df

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_fuzz.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,17 @@
7979
def onlyIfHasHypothesis(has_hypothesis):
8080
"""
8181
Conditionally enable a class based on the availability of the hypothesis library.
82+
8283
If the provided flag is False, returns a dummy class with a placeholder method that does nothing,
8384
allowing tests dependent on hypothesis to be safely bypassed. If True, the original
8485
class is returned unchanged.
85-
Args:
86+
87+
Arguments:
8688
has_hypothesis (bool): Flag indicating whether the hypothesis library is available.
89+
90+
Returns:
91+
callable: A decorator function that returns either the original class or a dummy class
92+
with a placeholder method, depending on the has_hypothesis flag.
8793
"""
8894
def decorator(cls):
8995
if not has_hypothesis:

0 commit comments

Comments
 (0)