Skip to content

Commit 2a10425

Browse files
authored
Merge pull request #155 from pytest-dev/altendky-patch-3
add hypothesis reference in readme
2 parents b345ddf + 80d13fb commit 2a10425

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ function and module scope are supported.
182182
await d2
183183
184184
185+
Hypothesis
186+
==========
187+
pytest-twisted can be used with Hypothesis.
188+
189+
.. code-block:: python
190+
191+
@hypothesis.given(x=hypothesis.strategies.integers())
192+
@pytest_twisted.ensureDeferred
193+
async def test_async(x):
194+
assert isinstance(x, int)
195+
196+
185197
The twisted greenlet
186198
====================
187199
Some libraries (e.g. corotwine) need to know the greenlet, which is

0 commit comments

Comments
 (0)