We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b345ddf + 80d13fb commit 2a10425Copy full SHA for 2a10425
README.rst
@@ -182,6 +182,18 @@ function and module scope are supported.
182
await d2
183
184
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
197
The twisted greenlet
198
====================
199
Some libraries (e.g. corotwine) need to know the greenlet, which is
0 commit comments