diff --git a/okdmr/tests/dmrlib/protocols/mmdvm/test_mmdvm.py b/okdmr/tests/dmrlib/protocols/mmdvm/test_mmdvm.py index 909a7a6..19bc014 100644 --- a/okdmr/tests/dmrlib/protocols/mmdvm/test_mmdvm.py +++ b/okdmr/tests/dmrlib/protocols/mmdvm/test_mmdvm.py @@ -1,13 +1,16 @@ from asyncio import Queue from typing import Callable +import pytest + from okdmr.dmrlib.protocols.mmdvm.mmdvm_client_protocol import ( MMDVMClientProtocol, MMDVMClientConfiguration, ) -def test_mmdvm_client(): +@pytest.mark.asyncio +async def test_mmdvm_client(): mock_config: MMDVMClientConfiguration = MMDVMClientConfiguration( # fill only required vars repeater_id=2309901, diff --git a/pyproject.toml b/pyproject.toml index 182ec24..1d8daf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,3 +117,10 @@ fragments = [ [tool.isort] profile = "black" + +[tool.pytest.ini_options] +asyncio_default_fixture_loop_scope = "function" +asyncio_mode = "strict" +filterwarnings = [ + 'ignore:Unknown config option:pytest.PytestConfigWarning' +]