Skip to content

Commit 5fc77b0

Browse files
Make ucws tests skipped when DATABRICKS_ACCOUNT_ID is present (#448)
## Changes <!-- Summary of your changes that are easy to understand --> - Added `skip_for_env` function and make all tests with `ucws` skip when `DATABRICKS_ACCOUNT_ID` is present ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> Verified that the ucws tests got skipped when running `make dev integration` - [ ] `make test` run locally - [ ] `make fmt` applied - [ ] relevant integration tests applied
1 parent 86ca043 commit 5fc77b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def w(env_or_skip) -> WorkspaceClient:
7171
def ucws(env_or_skip) -> WorkspaceClient:
7272
_load_debug_env_if_runs_from_ide('ucws')
7373
env_or_skip("CLOUD_ENV")
74+
if 'DATABRICKS_ACCOUNT_ID' in os.environ:
75+
pytest.skip("Skipping workspace test on account level")
7476
if 'TEST_METASTORE_ID' not in os.environ:
7577
pytest.skip("not in Unity Catalog Workspace test env")
7678
return WorkspaceClient()

0 commit comments

Comments
 (0)