feat(perception): add frozen yolox provider
This commit is contained in:
@@ -84,16 +84,19 @@ def test_new_perception_boundary_has_no_experiment_specific_imports() -> None:
|
||||
assert violations == {}
|
||||
|
||||
|
||||
def test_reference_graph_imports_only_an_admitted_compute_primitive() -> None:
|
||||
def test_product_perception_imports_only_admitted_compute_primitives() -> None:
|
||||
inventory = validate_reuse_inventory(REUSE_PATH)
|
||||
admitted = {
|
||||
item["module"]
|
||||
for item in inventory["reusable_primitives"]
|
||||
if isinstance(item, dict) and isinstance(item.get("module"), str)
|
||||
}
|
||||
compute_imports = {
|
||||
module
|
||||
for module in _imports(PERCEPTION_ROOT / "graph.py")
|
||||
if module.startswith("k1link.compute")
|
||||
}
|
||||
assert compute_imports <= admitted
|
||||
violations: dict[str, set[str]] = {}
|
||||
for path in PERCEPTION_ROOT.glob("*.py"):
|
||||
compute_imports = {
|
||||
module for module in _imports(path) if module.startswith("k1link.compute")
|
||||
}
|
||||
unadmitted = compute_imports - admitted
|
||||
if unadmitted:
|
||||
violations[path.name] = unadmitted
|
||||
assert violations == {}
|
||||
|
||||
Reference in New Issue
Block a user