harden calculation contracts and local API boundaries
This commit is contained in:
@@ -8,6 +8,16 @@ from pathlib import Path
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
SCRIPTS = str(ROOT / "scripts")
|
||||
WORKBUDDY_SKILL_SCRIPTS = ".workbuddy/skills/jyotish-vedic-astrology/scripts"
|
||||
SLOW_API_SECURITY_PREFIXES = (
|
||||
"test_vedastro_",
|
||||
"test_high_rigor_",
|
||||
"test_professional_reading",
|
||||
"test_api_prompt_pack",
|
||||
"test_consultation_workflow",
|
||||
"test_thematic_report",
|
||||
"test_capability_audit",
|
||||
"test_technique_catalog",
|
||||
)
|
||||
|
||||
|
||||
def ensure_project_scripts_first() -> None:
|
||||
@@ -28,4 +38,10 @@ def pytest_runtest_setup() -> None:
|
||||
ensure_project_scripts_first()
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(items) -> None:
|
||||
for item in items:
|
||||
if item.fspath.basename == "test_api_server_security.py" and item.name.startswith(SLOW_API_SECURITY_PREFIXES):
|
||||
item.add_marker("slow")
|
||||
|
||||
|
||||
ensure_project_scripts_first()
|
||||
|
||||
Reference in New Issue
Block a user