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.
1 parent 7a589a7 commit fe12dcbCopy full SHA for fe12dcb
tests/hypothesis/test_base.py
@@ -8,10 +8,22 @@
8
from pytest import Pytester
9
10
11
-@given(st.integers())
12
-@pytest.mark.asyncio
13
-async def test_mark_inner(n):
14
- assert isinstance(n, int)
+def test_hypothesis_given_decorator_before_asyncio_mark(pytester: Pytester):
+ pytester.makepyfile(
+ dedent(
+ """\
15
+ import pytest
16
+ from hypothesis import given, strategies as st
17
+
18
+ @given(st.integers())
19
+ @pytest.mark.asyncio
20
+ async def test_mark_inner(n):
21
+ assert isinstance(n, int)
22
+ """
23
+ )
24
25
+ result = pytester.runpytest("--asyncio-mode=strict", "-W default")
26
+ result.assert_outcomes(passed=1)
27
28
29
@pytest.mark.asyncio
0 commit comments