Skip to content

Commit 8f65227

Browse files
📝 Add docstrings to feature-add-import-regression-testing-151
Docstrings generation was requested by @reactive-firewall. * #323 (comment) The following files were modified: * `tests/test_fuzz.py`
1 parent 7a86564 commit 8f65227

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/test_fuzz.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,15 @@
7777

7878

7979
def onlyIfHasHypothesis(has_hypothesis):
80-
"""Decorator to handle optional loading."""
80+
"""Conditionally enable a class based on the availability of the hypothesis library.
81+
82+
If the provided flag is False, returns a dummy class with a placeholder method that does nothing,
83+
allowing tests dependent on hypothesis to be safely bypassed. If True, the original class is returned
84+
unchanged.
85+
86+
Args:
87+
has_hypothesis (bool): Flag indicating whether the hypothesis library is available.
88+
"""
8189
def decorator(cls):
8290
if not has_hypothesis:
8391
# Create an empty class with a method that returns None

0 commit comments

Comments
 (0)