You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: Missing automated test suite causes undetected regressions across critical modules #134
The reactome_chatbot repository currently has no automated test suite and no CI testing infrastructure. This creates several risks as the project scales:
Contributors cannot easily verify their changes don't break existing behaviour
Regressions in critical paths (config loading, retrieval logic) go undetected until runtime
The absence of a test gate makes it harder to confidently merge PRs
Proposed Solution
Introduce a lightweight testing foundation using pytest, targeting the core modules most critical to chatbot operation:
util.config_yml — Validate that config.yml (and default fallbacks) parse correctly into Pydantic models, and that feature flags / usage limits evaluate as expected
retrievers.csv_chroma — Unit test utility helpers such as ChromaDB subdirectory discovery, ensuring retrieval scaffolding behaves correctly under edge cases
Implementation Plan
Add a tests/ directory at the project root
Add pytest and pytest-mock to pyproject.toml under [tool.poetry.group.dev.dependencies]
Add a GitHub Actions workflow at .github/workflows/tests.yml that triggers on push and pull requests
Write initial test coverage for the two modules above as a foundation others can build on
Activity