a2a-source-edit: write tests/test_full_stack_contract.py
This commit is contained in:
@@ -44,7 +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)
|
||||
|
||||
card = load_local_project(ROOT).agent_cls().card()
|
||||
agent_cls = load_local_project(ROOT).agent_cls()
|
||||
card = agent_cls().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")
|
||||
@@ -56,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 card.runtime.workspace_access.enabled is True
|
||||
assert agent_cls.workspace_access.enabled is True
|
||||
|
||||
|
||||
def test_extractor_success_fixture_exact_dates():
|
||||
|
||||
Reference in New Issue
Block a user