Test integration

From firstof9/ha-gasbuddy · View interactive version

Test integration is an AI agent skill from the GitHub repository firstof9/ha-gasbuddy. Guide and instructions on how to run tests, set up test environments, and mock HTTP layers in the ha-gasbuddy repository.

How to use this skill

Skill file

Testing the GasBuddy Integration

This guide helps AI agents run and add tests in this repository.

Environment & Run Commands

Ensure you are using the correct Python version (target is 3.14) and dependencies:

# Setup virtual environment
uv venv --python 3.14
uv pip install -r requirements_test.txt
uv pip install 'ruff==0.15.14'

# Run the test suite
.venv/bin/python -m pytest -q --no-header

Adding New Tests

Add new test cases to tests/. Identify the target area to add tests:

Test Mocking Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.