Add missing @pytest.mark.asyncio decorator

This commit is contained in:
Josh Wu
2023-10-11 13:52:06 +08:00
parent 7255a09705
commit 333940919b
2 changed files with 7 additions and 0 deletions

View File

@@ -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)