{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"}],"enrichment":{"capability":"Provides pytest fixtures and testing utilities extracted from Home Assistant's test suite, enabling custom component developers to write tests using the same patterns as the core project.","skillfed_tags":["home-assistant","pytest-plugin","integration-testing"],"use_cases":["Write pytest-based unit and integration tests for a Home Assistant custom component using the same fixtures as core Home Assistant","Ensure custom component tests remain compatible with new Home Assistant releases by updating to the latest daily build","Mock Home Assistant entities, config entries, and services in custom component tests without duplicating core test utilities","Use snapshot testing via syrupy for custom component configuration or state validation aligned with Home Assistant conventions","Set up async test fixtures and mocking for MQTT, database, or API-based custom components"],"what_it_does":"pytest-homeassistant-custom-component extracts testing fixtures and helper functions from Home Assistant's core test suite and packages them for use in custom component projects. It allows developers to write integration tests using the same pytest fixtures (like `hass`, `MockConfigEntry`) and patterns as the main Home Assistant repository, without needing to fork or copy test code.\n\nThe package is automatically regenerated daily to track Home Assistant releases, including beta versions. It provides fixtures for async testing, mocking, snapshots via syrupy, and other common testing scenarios. Developers import helpers from `pytest_homeassistant_custom_component.common` instead of `tests.common`, and the package handles the extraction and versioning so that custom components can stay in sync with the Home Assistant testing API.","worth_installing":"Yes, if you are developing a Home Assistant custom component and want to follow the same testing patterns as core Home Assistant. The active daily maintenance and permissive MIT license make it practical. Be aware that the Python 3.14 requirement and large dependency tree may require careful environment management, and the alpha status means the API could shift with Home Assistant updates."},"id":"pytest-homeassistant-custom-component","links":{"html":"https://skillfed.io/packages/pytest-homeassistant-custom-component","md":"https://skillfed.io/packages/pytest-homeassistant-custom-component.md","pypi":"https://pypi.org/project/pytest-homeassistant-custom-component/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":null,"license_treatment":"permissive","name":"pytest-homeassistant-custom-component","python_support":"capped_below_current","summary":"Experimental package to automatically extract test plugins for Home Assistant custom components"},"popularity":{"monthly_downloads":9409116,"position":1535,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.13.355"}
