Files
wehub-resource-sync 6c9c7fe7f3
CI / integration tests (3.13) (push) Failing after 1s
Commit lint / pull request title (push) Has been skipped
Docs / links (push) Failing after 1s
CI / unit tests (3.13) (push) Failing after 1s
CI / lint (push) Failing after 1s
CI / integration tests (push) Failing after 1s
CI / package build (push) Failing after 1s
Commit lint / commit messages (push) Failing after 1s
CI / unit tests (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 12:24:24 +08:00

25 lines
579 B
Python

from __future__ import annotations
from typing import Protocol
import structlog
from everos.infra.ome.context import StrategyContext
def test_strategy_context_is_protocol() -> None:
assert issubclass(StrategyContext, Protocol) # type: ignore[arg-type]
def test_strategy_context_runtime_attributes() -> None:
class _Impl:
run_id = "r1"
logger = structlog.get_logger("test")
async def emit(self, event: object) -> None:
return None
ctx: StrategyContext = _Impl()
assert ctx.run_id == "r1"
assert callable(ctx.emit)