mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
65 lines
1.4 KiB
Python
65 lines
1.4 KiB
Python
"""Pytest configuration for the comfyui skill test suite.
|
|
|
|
Adds `scripts/` to sys.path so tests can `from _common import ...`, and
|
|
provides a few common fixtures.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import json
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
ROOT = Path(__file__).resolve().parent.parent
|
|
SCRIPTS = ROOT / "scripts"
|
|
WORKFLOWS = ROOT / "workflows"
|
|
|
|
sys.path.insert(0, str(SCRIPTS))
|
|
|
|
|
|
@pytest.fixture
|
|
def sd15_workflow() -> dict:
|
|
return json.loads((WORKFLOWS / "sd15_txt2img.json").read_text())
|
|
|
|
|
|
@pytest.fixture
|
|
def flux_workflow() -> dict:
|
|
return json.loads((WORKFLOWS / "flux_dev_txt2img.json").read_text())
|
|
|
|
|
|
@pytest.fixture
|
|
def video_workflow() -> dict:
|
|
return json.loads((WORKFLOWS / "wan_video_t2v.json").read_text())
|
|
|
|
|
|
@pytest.fixture
|
|
def workflows_dir() -> Path:
|
|
return WORKFLOWS
|
|
|
|
|
|
@pytest.fixture
|
|
def scripts_dir() -> Path:
|
|
return SCRIPTS
|
|
|
|
|
|
@pytest.fixture
|
|
def cloud_key() -> str | None:
|
|
"""Cloud API key if set, otherwise None.
|
|
|
|
Tests that need cloud connectivity should skip when this is None.
|
|
"""
|
|
return os.environ.get("COMFY_CLOUD_API_KEY")
|
|
|
|
|
|
def pytest_collection_modifyitems(config, items):
|
|
"""Auto-skip cloud tests when no API key is set."""
|
|
if os.environ.get("COMFY_CLOUD_API_KEY"):
|
|
return
|
|
skip_cloud = pytest.mark.skip(reason="Set COMFY_CLOUD_API_KEY to run cloud tests")
|
|
for item in items:
|
|
if "cloud" in item.keywords:
|
|
item.add_marker(skip_cloud)
|