Skip to content

Add sample scenario tests for suite_template.py #4

@aviralgarg05

Description

@aviralgarg05

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.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions