From 333940919b9f8b0c068f47598c642373e399b0b8 Mon Sep 17 00:00:00 2001 From: Josh Wu Date: Wed, 11 Oct 2023 13:52:06 +0800 Subject: [PATCH] Add missing @pytest.mark.asyncio decorator --- tests/keystore_test.py | 3 +++ tests/sdp_test.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/tests/keystore_test.py b/tests/keystore_test.py index 2a3d48d..34a2cb2 100644 --- a/tests/keystore_test.py +++ b/tests/keystore_test.py @@ -94,6 +94,7 @@ def temporary_file(): # ----------------------------------------------------------------------------- +@pytest.mark.asyncio async def test_basic(temporary_file): with open(temporary_file, mode='w', encoding='utf-8') as file: file.write("{}") @@ -125,6 +126,7 @@ async def test_basic(temporary_file): # ----------------------------------------------------------------------------- +@pytest.mark.asyncio async def test_parsing(temporary_file): with open(temporary_file, mode='w', encoding='utf-8') as file: file.write(JSON1) @@ -137,6 +139,7 @@ async def test_parsing(temporary_file): # ----------------------------------------------------------------------------- +@pytest.mark.asyncio async def test_default_namespace(temporary_file): with open(temporary_file, mode='w', encoding='utf-8') as file: file.write(JSON1) diff --git a/tests/sdp_test.py b/tests/sdp_test.py index 090e7b2..d649138 100644 --- a/tests/sdp_test.py +++ b/tests/sdp_test.py @@ -18,6 +18,7 @@ import asyncio import logging import os +import pytest from bumble.core import UUID, BT_L2CAP_PROTOCOL_ID, BT_RFCOMM_PROTOCOL_ID from bumble.sdp import ( @@ -202,6 +203,7 @@ def sdp_records(): # ----------------------------------------------------------------------------- +@pytest.mark.asyncio async def test_service_search(): # Setup connections devices = TwoDevices() @@ -224,6 +226,7 @@ async def test_service_search(): # ----------------------------------------------------------------------------- +@pytest.mark.asyncio async def test_service_attribute(): # Setup connections devices = TwoDevices() @@ -244,6 +247,7 @@ async def test_service_attribute(): # ----------------------------------------------------------------------------- +@pytest.mark.asyncio async def test_service_search_attribute(): # Setup connections devices = TwoDevices()