mirror of
https://github.com/smkrv/ha-text-ai.git
synced 2026-07-21 22:54:00 +08:00
errors correction
This commit is contained in:
@@ -18,10 +18,7 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest pylint
|
||||
pip install -r requirements.txt
|
||||
- name: Run tests
|
||||
run: |
|
||||
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