This commit is contained in:
@@ -40,6 +40,22 @@ class _Consumer:
|
||||
self.added.append(queue)
|
||||
|
||||
|
||||
def test_api_runtime_identity_uses_the_installed_distribution_version(
|
||||
monkeypatch,
|
||||
) -> None:
|
||||
from govoplan_core.server import default_config
|
||||
|
||||
monkeypatch.setattr(
|
||||
default_config,
|
||||
"version",
|
||||
lambda distribution: "0.1.15"
|
||||
if distribution == "govoplan-core"
|
||||
else "unexpected",
|
||||
)
|
||||
|
||||
assert default_config._core_distribution_version() == "0.1.15"
|
||||
|
||||
|
||||
def test_api_runtime_agent_fails_readiness_on_heartbeat_error() -> None:
|
||||
agent = RuntimeNodeAgent(
|
||||
settings=SimpleNamespace(
|
||||
|
||||
Reference in New Issue
Block a user