Summary
Provide a minimal unit test that imports docs/templates/suite_template.py (or a copy under tests/fixtures) and executes the sample FAQAdapter against the bundled dataset to demonstrate expected structure.
Suggested changes
- Create a small test in
tests/ that:
- Imports or copies the
FAQAdapter/DatasetSource setup from docs/templates/suite_template.py.
- Mocks a simple agent with
.connect() and .answer() to return the expected string.
- Asserts that
Scenario.run() (or equivalent) produces a successful AdapterOutcome.
- Keep dependencies limited to the existing test stack (pytest only).
Why this is beginner-friendly
- Touches only test files and uses existing sample code as a guide.
- Reinforces understanding of the public API.
Acceptance criteria
- New test passes locally with
poetry run pytest.
- No new lint issues (
poetry run ruff check .).
- The test clearly documents the happy-path usage of the template adapter.
Summary
Provide a minimal unit test that imports
docs/templates/suite_template.py(or a copy undertests/fixtures) and executes the sampleFAQAdapteragainst the bundled dataset to demonstrate expected structure.Suggested changes
tests/that:FAQAdapter/DatasetSourcesetup fromdocs/templates/suite_template.py..connect()and.answer()to return the expected string.Scenario.run()(or equivalent) produces a successfulAdapterOutcome.Why this is beginner-friendly
Acceptance criteria
poetry run pytest.poetry run ruff check .).