Skip to content

Commit 4e34889

Browse files
committed
add pytest ref link
1 parent 2e62fad commit 4e34889

File tree

1 file changed

+2
-0
lines changed
  • hypothesis-python/docs/reference

1 file changed

+2
-0
lines changed

hypothesis-python/docs/reference/api.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1020,3 +1020,5 @@ Detecting Hypothesis tests
10201020
To determine whether a test has been defined with Hypothesis or not, use |is_hypothesis_test|:
10211021

10221022
.. 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

Comments
 (0)