From 87aa062b9c2e2409b52d72d4ac8086336082211a Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Thu, 31 Oct 2024 16:36:12 +0100 Subject: [PATCH] chore: update dev deps (#313) --- pyproject.toml | 8 ++++---- tests/unit/test_platform_event_manager.py | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d6898d94..d5b195a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,8 +60,8 @@ websockets = ">=10.0" build = "~1.2.0" filelock = "~3.16.0" griffe = "~1.5.0" -mypy = "~1.11.0" -pre-commit = "~3.8.0" +mypy = "~1.13.0" +pre-commit = "~4.0.0" pydoc-markdown = "~4.8.0" pytest = "~8.3.0" pytest-asyncio = "~0.24.0" @@ -70,8 +70,8 @@ pytest-only = "~2.1.0" pytest-timeout = "~2.3.0" pytest-xdist = "~3.6.0" respx = "~0.21.0" -ruff = "~0.6.0" -setuptools = "~74.0.0" # setuptools are used by pytest but not explicitly required +ruff = "~0.7.0" +setuptools = "~75.0.0" # setuptools are used by pytest but not explicitly required [tool.poetry.extras] scrapy = ["scrapy"] diff --git a/tests/unit/test_platform_event_manager.py b/tests/unit/test_platform_event_manager.py index cb7719f3..b605fb6d 100644 --- a/tests/unit/test_platform_event_manager.py +++ b/tests/unit/test_platform_event_manager.py @@ -199,5 +199,6 @@ def listener(data: Any) -> None: await send_platform_event(Event.SYSTEM_INFO, dummy_system_info) await asyncio.sleep(0.1) assert len(event_calls) == 1 + assert event_calls[0] is not None assert event_calls[0]['cpuInfo']['usedRatio'] == 8.45549815498155 event_calls.clear()