You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hypothesis-python/docs/reference/api.rst
+2
Original file line number
Diff line number
Diff line change
@@ -1020,3 +1020,5 @@ Detecting Hypothesis tests
1020
1020
To determine whether a test has been defined with Hypothesis or not, use |is_hypothesis_test|:
1021
1021
1022
1022
.. autofunction:: hypothesis.is_hypothesis_test
1023
+
1024
+
If you're working with :pypi:`pytest`, our :ref:`pytest plugin <pytest-plugin>` automatically adds the ``@pytest.mark.hypothesis`` mark to all Hypothesis tests. You can use ``node.get_closest_marker("hypothesis")`` or similar methods to detect the existence of this mark.
0 commit comments