Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0nx committed Apr 27, 2024
1 parent 355423e commit 9b14ed4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# ruff: noqa: S106


@pytest.fixture(scope='session')
def oh() -> 'openhab.OpenHAB':
"""Setup a generic connection."""
Expand All @@ -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)

0 comments on commit 9b14ed4

Please sign in to comment.