fix: restore Python 3.12 startup and release 2.0.1
This commit is contained in:
1 parent
bf6247703d
commit
b584dae80a
19 files changed
+223
-20
No files matched your search
@@ -15,6 +15,7 @@
|
||||
"""Unit tests for Artemis System Diagnostics & Readiness Engine."""
|
||||
|
||||
import asyncio
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import AsyncMock, Mock
|
||||
|
||||
import pytest
|
||||
@@ -173,7 +174,13 @@ async def test_dashboard_reuses_recent_confirmed_state_on_one_timeout(monkeypatc
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_readiness_engine_coalesces_concurrent_full_scans():
|
||||
@pytest.mark.parametrize("same_clock_tick", [False, True])
|
||||
async def test_readiness_engine_coalesces_concurrent_full_scans(same_clock_tick, monkeypatch):
|
||||
if same_clock_tick:
|
||||
monkeypatch.setattr(
|
||||
"artemis.core.diagnostics.engine.time",
|
||||
SimpleNamespace(monotonic=lambda: 100.0, time=lambda: 100.0),
|
||||
)
|
||||
engine = ReadinessEngine()
|
||||
result = ProbeResult(
|
||||
id="test_probe",
|
||||
@@ -200,7 +207,13 @@ async def test_readiness_engine_coalesces_concurrent_full_scans():
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_readiness_engine_reuses_cache_until_forced():
|
||||
@pytest.mark.parametrize("same_clock_tick", [False, True])
|
||||
async def test_readiness_engine_reuses_cache_until_forced(same_clock_tick, monkeypatch):
|
||||
if same_clock_tick:
|
||||
monkeypatch.setattr(
|
||||
"artemis.core.diagnostics.engine.time",
|
||||
SimpleNamespace(monotonic=lambda: 100.0, time=lambda: 100.0),
|
||||
)
|
||||
engine = ReadinessEngine()
|
||||
result = ProbeResult(
|
||||
id="test_probe",
|
||||
|
||||
Reference in new issue
Block a user