mirror of
https://github.com/Sea-Haven-Industries/apm-wo-analysis.git
synced 2026-09-30 07:43:15 +00:00
25 lines
891 B
Python
25 lines
891 B
Python
|
|
"""Smoke test for the two-axis classifier.
|
||
|
|
|
||
|
|
The full smoke test — run ``classify()`` over the sample export
|
||
|
|
(~/Downloads/_documents/Sheet1-1.xlsx) and assert "Other" <= ~10% with known
|
||
|
|
fixtures landing in the right buckets — is added in Phase 2 (docs/BUILD.md) and
|
||
|
|
owned by the classifier-engineer agent. This placeholder keeps the test layout
|
||
|
|
in place and guards the classification constants.
|
||
|
|
"""
|
||
|
|
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
sys.path.insert(
|
||
|
|
0, str(Path(__file__).resolve().parent.parent / "lambdas" / "classifier")
|
||
|
|
)
|
||
|
|
|
||
|
|
import classify # noqa: E402
|
||
|
|
|
||
|
|
|
||
|
|
def test_classification_constants_well_formed():
|
||
|
|
assert "3rd Escalation" in classify.ESCALATION_CATEGORIES
|
||
|
|
assert classify.HOLD_TO_CATEGORY["SCHEDULING"] == "Awaiting Scheduling"
|
||
|
|
# Every escalation category is also action-needed.
|
||
|
|
assert classify.ESCALATION_CATEGORIES <= classify.ACTION_NEEDED_CATEGORIES
|