mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-30 14:43:57 +08:00
errors correction
This commit is contained in:
@@ -18,10 +18,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest pylint
|
pip install -r requirements.txt
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
- name: Lint with pylint
|
|
||||||
run: |
|
|
||||||
pylint custom_components/ha_text_ai/*.py
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
pytest
|
||||||
|
pytest-asyncio
|
||||||
|
homeassistant
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
"""Common fixtures for tests."""
|
||||||
|
import pytest
|
||||||
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def hass() -> HomeAssistant:
|
||||||
|
"""Return a Home Assistant instance for testing."""
|
||||||
|
return HomeAssistant()
|
||||||
Reference in New Issue
Block a user