From e117e94fd0b904f667f0871781681e133f9fbeb9 Mon Sep 17 00:00:00 2001 From: Tomer Keren Date: Wed, 6 Feb 2019 11:59:01 +0200 Subject: [PATCH 1/2] Make pytest.mark.asyncio compatible with classic functions Closes #109 --- tests/test_simple_35.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_simple_35.py b/tests/test_simple_35.py index 1e4d697c..2eea8680 100644 --- a/tests/test_simple_35.py +++ b/tests/test_simple_35.py @@ -72,6 +72,10 @@ async def run_test(): event_loop.stop() event_loop.close() +@pytest.mark.asyncio +def test_non_corutine_marked(): + """Tests that marked non-corutines function normally (Issue #109)""" + assert True class Test: """Test that asyncio marked functions work in test methods.""" From 21f332933478c6aae0cdb19346465f3ff599ca0a Mon Sep 17 00:00:00 2001 From: Tomer Keren Date: Sat, 9 Nov 2019 18:50:02 +0200 Subject: [PATCH 2/2] Fix typo in docstring Co-Authored-By: Thibaut Le Page --- tests/test_simple_35.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_simple_35.py b/tests/test_simple_35.py index 2eea8680..cedc6aa5 100644 --- a/tests/test_simple_35.py +++ b/tests/test_simple_35.py @@ -74,7 +74,7 @@ async def run_test(): @pytest.mark.asyncio def test_non_corutine_marked(): - """Tests that marked non-corutines function normally (Issue #109)""" + """Tests that marked non-coroutines function normally (Issue #109)""" assert True class Test: