From 9b14ed48819e10c46eafd0a736ed687a034f9b8d Mon Sep 17 00:00:00 2001 From: Georges Toth Date: Sat, 27 Apr 2024 23:20:19 +0200 Subject: [PATCH] autoformat --- tests/conftest.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index b11689c..2e2f92a 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,6 +7,7 @@ # ruff: noqa: S106 + @pytest.fixture(scope='session') def oh() -> 'openhab.OpenHAB': """Setup a generic connection.""" @@ -25,9 +26,10 @@ def oh_oauth2() -> 'openhab.OpenHAB': oauth2_token = openhab.oauth2_helper.get_oauth2_token(url_base, username='admin', password='admin') - oauth2_config = {'client_id': r'http://127.0.0.1/auth', - 'token_cache': str(pathlib.Path(__file__).resolve().parent.parent / '.oauth2_token_test'), - 'token': oauth2_token, - } + oauth2_config = { + 'client_id': r'http://127.0.0.1/auth', + 'token_cache': str(pathlib.Path(__file__).resolve().parent.parent / '.oauth2_token_test'), + 'token': oauth2_token, + } return openhab.OpenHAB(url_rest, oauth2_config=oauth2_config)