Files
agent_contas/tests/migration/test_framework_zero_legacy.py

12 lines
449 B
Python

from pathlib import Path
def test_framework_source_has_zero_legacy_namespace_references():
root = Path(__file__).resolve().parents[2] / "agent_framework_oci" / "libs" / "agent_framework" / "src" / "agent_framework"
offenders = []
for path in root.rglob("*.py"):
text = path.read_text(encoding="utf-8")
if "agente_contas_tim" in text:
offenders.append(str(path.relative_to(root)))
assert offenders == []