updates some tests to have a running event loop

This commit is contained in:
Mose Müller
2023-12-21 13:11:49 +01:00
parent c733026522
commit f69723dd58
3 changed files with 15 additions and 7 deletions

View File

@ -125,7 +125,8 @@ def test_ColouredEnum_serialize() -> None:
}
def test_method_serialization() -> None:
@pytest.mark.asyncio
async def test_method_serialization() -> None:
class ClassWithMethod(pydase.DataService):
def some_method(self) -> str:
return "some method"