Sort imports according to PEP8 for 'tests' (#29791)
This commit is contained in:
1 parent
67c56c860d
commit
f60125b5c9
68 files changed
+254
-251
No files matched your search
@@ -2,6 +2,7 @@
|
||||
from homeassistant import auth, data_entry_flow
|
||||
from homeassistant.auth.mfa_modules import auth_mfa_module_from_config
|
||||
from homeassistant.auth.models import Credentials
|
||||
|
||||
from tests.common import MockUser
|
||||
|
||||
|
||||
|
||||
@@ -3,9 +3,10 @@ import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.auth import models as auth_models, auth_manager_from_config
|
||||
from homeassistant.auth import auth_manager_from_config, models as auth_models
|
||||
from homeassistant.auth.mfa_modules import auth_mfa_module_from_config
|
||||
from homeassistant.components.notify import NOTIFY_SERVICE_SCHEMA
|
||||
|
||||
from tests.common import MockUser, async_mock_service
|
||||
|
||||
MOCK_CODE = "123456"
|
||||
|
||||
@@ -3,8 +3,9 @@ import asyncio
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.auth import models as auth_models, auth_manager_from_config
|
||||
from homeassistant.auth import auth_manager_from_config, models as auth_models
|
||||
from homeassistant.auth.mfa_modules import auth_mfa_module_from_config
|
||||
|
||||
from tests.common import MockUser
|
||||
|
||||
MOCK_CODE = "123456"
|
||||
|
||||
@@ -3,14 +3,14 @@ import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.auth.permissions.entities import (
|
||||
compile_entities,
|
||||
ENTITY_POLICY_SCHEMA,
|
||||
compile_entities,
|
||||
)
|
||||
from homeassistant.auth.permissions.models import PermissionLookup
|
||||
from homeassistant.helpers.entity_registry import RegistryEntry
|
||||
from homeassistant.helpers.device_registry import DeviceEntry
|
||||
from homeassistant.helpers.entity_registry import RegistryEntry
|
||||
|
||||
from tests.common import mock_registry, mock_device_registry
|
||||
from tests.common import mock_device_registry, mock_registry
|
||||
|
||||
|
||||
def test_entities_none():
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Test system policies."""
|
||||
from homeassistant.auth.permissions import (
|
||||
POLICY_SCHEMA,
|
||||
PolicyPermissions,
|
||||
system_policies,
|
||||
POLICY_SCHEMA,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
"""Tests for the command_line auth provider."""
|
||||
|
||||
from unittest.mock import Mock
|
||||
import os
|
||||
from unittest.mock import Mock
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.auth import auth_store, models as auth_models, AuthManager
|
||||
from homeassistant.auth import AuthManager, auth_store, models as auth_models
|
||||
from homeassistant.auth.providers import command_line
|
||||
from homeassistant.const import CONF_TYPE
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.auth import auth_store, models as auth_models, AuthManager
|
||||
from homeassistant.auth import AuthManager, auth_store, models as auth_models
|
||||
from homeassistant.auth.providers import insecure_example
|
||||
|
||||
from tests.common import mock_coro
|
||||
|
||||
@@ -7,11 +7,12 @@ import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import auth, data_entry_flow
|
||||
from homeassistant.auth import models as auth_models, auth_store, const as auth_const
|
||||
from homeassistant.auth import auth_store, const as auth_const, models as auth_models
|
||||
from homeassistant.auth.const import MFA_SESSION_EXPIRATION
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.util import dt as dt_util
|
||||
from tests.common import MockUser, ensure_auth_manager_loaded, flush_store, CLIENT_ID
|
||||
|
||||
from tests.common import CLIENT_ID, MockUser, ensure_auth_manager_loaded, flush_store
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
||||
Reference in new issue
Block a user