Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"""Tests for the extracted GatewayKanbanWatchersMixin (god-file Phase 3).
|
||||
|
||||
The kanban watcher loops were lifted out of gateway/run.py into a mixin that
|
||||
GatewayRunner inherits. These tests confirm the mixin exposes the methods and
|
||||
that GatewayRunner picks them up via the MRO (behavior-neutral relocation).
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import inspect
|
||||
|
||||
from gateway.kanban_watchers import GatewayKanbanWatchersMixin
|
||||
|
||||
KANBAN_METHODS = [
|
||||
"_kanban_notifier_watcher",
|
||||
"_kanban_dispatcher_watcher",
|
||||
"_kanban_advance",
|
||||
"_kanban_unsub",
|
||||
"_kanban_rewind",
|
||||
"_deliver_kanban_artifacts",
|
||||
]
|
||||
|
||||
|
||||
def test_mixin_defines_kanban_methods():
|
||||
for m in KANBAN_METHODS:
|
||||
assert hasattr(GatewayKanbanWatchersMixin, m), f"mixin missing {m}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user