Skip to content

Conversation

@hectorcast-db
Copy link
Contributor

@hectorcast-db hectorcast-db commented Jan 30, 2026

What changes are proposed in this pull request?

Enable support for a single Profile to use both Account and Workspace endpoints.

This is done by moving the header injection logic to the code generation, which is aware of which endpoints are workspace specific.

How is this tested?

Updated test.

@hectorcast-db hectorcast-db changed the title test Enable support for a single Profile to use both Account and Workspace endpoints Jan 30, 2026
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 1232
  • Commit SHA: 21b0d2d0651b807e4d943a36ce078c99aacb26ec

Checks will be approved automatically on success.



def test_account_operations(unified_config):
client = AccountClient(config=unified_config)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this test be skipped because the unified config above is defined only for workspace?

    _load_debug_env_if_runs_from_ide("workspace")
    env_or_skip("CLOUD_ENV")
    if "DATABRICKS_ACCOUNT_ID" in os.environ:
        pytest.skip("Skipping workspace test on account level")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants