a2a-source-edit: write tests/test_full_stack_contract.py
This commit is contained in:
@@ -44,8 +44,8 @@ def test_full_stack_product_contract():
|
|||||||
migrations = list((ROOT / "db" / "migrations").glob("*.sql"))
|
migrations = list((ROOT / "db" / "migrations").glob("*.sql"))
|
||||||
assert migrations and all(path.read_text(encoding="utf-8").strip() for path in migrations)
|
assert migrations and all(path.read_text(encoding="utf-8").strip() for path in migrations)
|
||||||
|
|
||||||
agent_cls = load_local_project(ROOT).agent_cls()
|
load_local_project(ROOT) # proves the manifest and entrypoint import cleanly.
|
||||||
card = agent_cls().card()
|
card = ContractClockStudioV1().card()
|
||||||
skill_names = {skill.name for skill in card.skills}
|
skill_names = {skill.name for skill in card.skills}
|
||||||
assert {"analyze_contract", "get_contract_deadlines", "analyze_contract_browser_upload", "analyze_contract_file_upload"}.issubset(skill_names)
|
assert {"analyze_contract", "get_contract_deadlines", "analyze_contract_browser_upload", "analyze_contract_file_upload"}.issubset(skill_names)
|
||||||
analyze_schema = next(skill.input_schema for skill in card.skills if skill.name == "analyze_contract")
|
analyze_schema = next(skill.input_schema for skill in card.skills if skill.name == "analyze_contract")
|
||||||
@@ -57,7 +57,7 @@ def test_full_stack_product_contract():
|
|||||||
assert databases[0].migrations is not None
|
assert databases[0].migrations is not None
|
||||||
assert databases[0].migrations.path == "db/migrations"
|
assert databases[0].migrations.path == "db/migrations"
|
||||||
assert card.runtime.pricing.caller_pays_llm is False
|
assert card.runtime.pricing.caller_pays_llm is False
|
||||||
assert agent_cls.workspace_access.enabled is True
|
assert ContractClockStudioV1.workspace_access.enabled is True
|
||||||
|
|
||||||
|
|
||||||
def test_extractor_success_fixture_exact_dates():
|
def test_extractor_success_fixture_exact_dates():
|
||||||
|
|||||||
Reference in New Issue
Block a user