Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion databricks/sdk/errors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class ErrorDetail:

def __init__(
self,
type: str = None,
Expand Down
8 changes: 7 additions & 1 deletion tests/test_model_serving_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ def test_model_serving_auth_refresh(monkeypatch, mocker):


def test_agent_user_credentials(monkeypatch, mocker):
# Guarantee that the tests defaults to env variables rather than config file.
#
# TODO: this is hacky and we should find a better way to tell the config
# that it should not read from the config file.
monkeypatch.setenv("DATABRICKS_CONFIG_FILE", "x")

monkeypatch.setenv("IS_IN_DB_MODEL_SERVING_ENV", "true")
monkeypatch.setenv("DB_MODEL_SERVING_HOST_URL", "x")
monkeypatch.setattr(
Expand Down Expand Up @@ -205,4 +211,4 @@ def test_agent_user_credentials_in_non_model_serving_environments(monkeypatch):
headers = cfg.authenticate()

assert cfg.host == "https://x"
assert headers.get("Authorization") == f"Bearer token"
assert headers.get("Authorization") == "Bearer token"
Loading