Remove no longer needed auth.util, use secrets instead (#29861)

This commit is contained in:
Ville Skyttä 2019-12-12 17:46:33 +02:00 committed by Paulus Schoutsen
parent c58c10ab7c
commit 130571c478
11 changed files with 24 additions and 34 deletions

View file

@ -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")