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

This commit is contained in:
Ville Skyttä authored and Paulus Schoutsen committed 2019-12-12 16:46:33 +01:00
1 parent c58c10ab7c
commit 130571c478
11 files changed
+24 -34

No files matched your search

+2 -1
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")