feat: expand module workflows, dynamic config, notifications and console API
This commit is contained in:
@@ -12,6 +12,7 @@ import pytest
|
||||
|
||||
import gyxx_flow.adapters.acceptance_policy as acceptance_policy_module
|
||||
from gyxx_flow.adapters import (
|
||||
ANALYZER_ACCEPTANCE_RECIPIENT_OPEN_ID,
|
||||
WORKFLOW_ACCEPTANCE_RECIPIENT_OPEN_ID,
|
||||
RuntimeIntegrationBinding,
|
||||
WorkflowAcceptancePolicy,
|
||||
@@ -96,6 +97,23 @@ def test_acceptance_policy_is_fail_closed_and_forces_wang_yunlong(
|
||||
)
|
||||
|
||||
|
||||
def test_acceptance_policy_recognizes_snapshot_declared_analyzer_app(
|
||||
tmp_path: Path,
|
||||
) -> None:
|
||||
policy = WorkflowAcceptancePolicy.from_environment(
|
||||
{
|
||||
**_environment(tmp_path),
|
||||
"GYXX_NOTIFICATION_APP_PROFILE": "second-analyzer-app",
|
||||
"GYXX_NOTIFICATION_HERMES_PROFILE": "data-analyzer",
|
||||
}
|
||||
)
|
||||
|
||||
assert policy.notification_recipients(
|
||||
("ou_other",),
|
||||
app_profile="second-analyzer-app",
|
||||
) == (ANALYZER_ACCEPTANCE_RECIPIENT_OPEN_ID,)
|
||||
|
||||
|
||||
def test_feishu_write_skip_appends_run_scoped_evidence(
|
||||
tmp_path: Path,
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
|
||||
Reference in New Issue
Block a user