Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Latest commit

 

History

History
30 lines (21 loc) · 629 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 629 Bytes

Tests

This directory contains comprehensive tests for the Torque integration.

Running Tests

To run all tests:

pytest tests/

To run tests with coverage:

pytest tests/ --cov=custom_components.torque --cov-report=html

Test Structure

  • conftest.py - Test fixtures and configuration
  • test_config_flow.py - Tests for configuration flow
  • test_sensor.py - Tests for sensor functionality
  • test_init.py - Tests for integration setup/teardown

Requirements

The tests require the following packages:

  • pytest
  • pytest-homeassistant-custom-component
  • pytest-cov (for coverage reporting)