Remove no longer needed auth.util, use secrets instead (#29861)
This commit is contained in:
parent
c58c10ab7c
commit
130571c478
11 changed files with 24 additions and 34 deletions
|
@ -1,4 +1,5 @@
|
|||
"""Test configuration and mocks for the SmartThings component."""
|
||||
import secrets
|
||||
from uuid import uuid4
|
||||
|
||||
from asynctest import Mock, patch
|
||||
|
@ -160,7 +161,7 @@ def installed_apps_fixture(installed_app, locations, app):
|
|||
@pytest.fixture(name="config_file")
|
||||
def config_file_fixture():
|
||||
"""Fixture representing the local config file contents."""
|
||||
return {CONF_INSTANCE_ID: str(uuid4()), CONF_WEBHOOK_ID: webhook.generate_secret()}
|
||||
return {CONF_INSTANCE_ID: str(uuid4()), CONF_WEBHOOK_ID: secrets.token_hex()}
|
||||
|
||||
|
||||
@pytest.fixture(name="smartthings_mock")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue