Skip to content

Commit 5315981

Browse files
committed
Formatting
1 parent 6f7389c commit 5315981

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_model_serving_auth.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def test_model_serving_auth_refresh(monkeypatch, mocker):
114114
# Read V2 now
115115
assert headers.get("Authorization") == 'Bearer databricks_sdk_unit_test_token_v2'
116116

117+
117118
def test_agent_user_credentials(monkeypatch, mocker):
118119
monkeypatch.setenv('IS_IN_DB_MODEL_SERVING_ENV', 'true')
119120
monkeypatch.setenv('DB_MODEL_SERVING_HOST_URL', 'x')
@@ -145,7 +146,7 @@ def test_agent_user_credentials(monkeypatch, mocker):
145146
assert headers.get("Authorization") == f'Bearer {invokers_token_val}'
146147

147148
# Test invokers token in child thread
148-
149+
149150
successful_authentication_event = threading.Event()
150151

151152
def authenticate():
@@ -155,14 +156,14 @@ def authenticate():
155156
assert (cfg.host == 'x')
156157
assert headers.get("Authorization") == f'Bearer databricks_invokers_token_v2'
157158
successful_authentication_event.set()
158-
except Exception as e:
159+
except Exception:
159160
successful_authentication_event.clear()
160161

161162
thread = threading.Thread(target=authenticate)
162163

163164
thread.start()
164165
thread.join()
165-
assert(successful_authentication_event.is_set())
166+
assert (successful_authentication_event.is_set())
166167

167168

168169
# If this credential strategy is being used in a non model serving environments then use default credential strategy instead

0 commit comments

Comments
 (0)