pytest: changes fixture scopes

This commit is contained in:
Mose Müller
2024-07-30 08:36:59 +02:00
parent f91be30ad0
commit 75e355faf9
6 changed files with 11 additions and 11 deletions

View File

@ -8,7 +8,7 @@ import pydase
import pytest
@pytest.fixture(scope="session")
@pytest.fixture(scope="module")
def pydase_server() -> Generator[None, None, None]:
class SubService(pydase.DataService):
name = "SubService"
@ -103,7 +103,7 @@ def pydase_server() -> Generator[None, None, None]:
),
],
)
@pytest.mark.asyncio
@pytest.mark.asyncio(scope="module")
async def test_get_value(
access_path: str,
expected: dict[str, Any],
@ -171,7 +171,7 @@ async def test_get_value(
),
],
)
@pytest.mark.asyncio
@pytest.mark.asyncio(scope="module")
async def test_update_value(
access_path: str,
new_value: dict[str, Any],