Download tests_python/test_backyard_templates.py from build-small-hackathon/agent-swarm-workbench: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/agent-swarm-workbench/resolve/main/tests_python/test_backyard_templates.py
- Command line
-
hf download hf://spaces/build-small-hackathon/agent-swarm-workbench/tests_python/test_backyard_templates.py
-
curl -L -o test_backyard_templates.py https://huggingface.co/spaces/build-small-hackathon/agent-swarm-workbench/resolve/main/tests_python/test_backyard_templates.py
687 Bytes
| from arena.backyard_templates import REAL_ESTATE_FOLLOWUP, template_by_label, template_choices | |
| def test_real_estate_template_contains_required_demo_package_files() -> None: | |
| template = REAL_ESTATE_FOLLOWUP | |
| assert template.label in template_choices() | |
| assert "real-estate agent" in template.prompt | |
| assert "English/Vietnamese UI toggle" in template.criteria | |
| assert "handoff_spec.md" in template.checks | |
| assert "field_notes.md" in template.checks | |
| def test_template_lookup_falls_back_to_real_estate_template() -> None: | |
| assert template_by_label("Real Estate Follow-up CRM") == REAL_ESTATE_FOLLOWUP | |
| assert template_by_label("missing") == REAL_ESTATE_FOLLOWUP | |