a2a-source-edit: write tests/test_full_stack_contract.py

This commit is contained in:
a2a-cloud
2026-07-18 07:18:08 +00:00
parent e74b64f7bb
commit 8920c69d0b

View File

@@ -44,8 +44,8 @@ def test_full_stack_product_contract():
migrations = list((ROOT / "db" / "migrations").glob("*.sql"))
assert migrations and all(path.read_text(encoding="utf-8").strip() for path in migrations)
agent_cls = load_local_project(ROOT).agent_cls()
card = agent_cls().card()
load_local_project(ROOT) # proves the manifest and entrypoint import cleanly.
card = ContractClockStudioV1().card()
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)
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.path == "db/migrations"
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():