Skip to content

Commit

Permalink
compatible with py3.8 and 3.10, defined defaults for pytest in pyproj…
Browse files Browse the repository at this point in the history
…ect.toml
  • Loading branch information
smarek committed Nov 30, 2024
1 parent 3f14996 commit 75d6f52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion okdmr/tests/dmrlib/protocols/mmdvm/test_mmdvm.py
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]

0 comments on commit 75d6f52

Please sign in to comment.