Skip to content

Commit

Permalink
tests: fix some imports
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Ermakov <[email protected]>
  • Loading branch information
vooon committed Feb 17, 2023
1 parent a3e5db3 commit dbf3a54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- cron: "0 0 * * *"

env:
DEFAULT_PYTHON: '3.10'
DEFAULT_PYTHON: "3.10"

jobs:
pre-commit:
Expand Down
10 changes: 3 additions & 7 deletions tests/const.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
"""Constants for MyHeat tests."""
from custom_components.myheat.const import (
CONF_PASSWORD,
)
from custom_components.myheat.const import (
CONF_USERNAME,
)
from custom_components.myheat.const import CONF_API_KEY
from custom_components.myheat.const import CONF_USERNAME

MOCK_CONFIG = {CONF_USERNAME: "test_username", CONF_PASSWORD: "test_password"}
MOCK_CONFIG = {CONF_USERNAME: "test_username", CONF_API_KEY: "test_password"}
20 changes: 5 additions & 15 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
"""Test MyHeat setup process."""
import pytest
from custom_components.myheat import (
async_reload_entry,
)
from custom_components.myheat import (
async_setup_entry,
)
from custom_components.myheat import (
async_unload_entry,
)
from custom_components.myheat import (
MhDataUpdateCoordinator,
)
from custom_components.myheat.const import (
DOMAIN,
)
from custom_components.myheat import async_reload_entry
from custom_components.myheat import async_setup_entry
from custom_components.myheat import async_unload_entry
from custom_components.myheat import MhDataUpdateCoordinator
from custom_components.myheat.const import DOMAIN
from homeassistant.exceptions import ConfigEntryNotReady
from pytest_homeassistant_custom_component.common import MockConfigEntry

Expand Down

0 comments on commit dbf3a54

Please sign in to comment.