Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs committed Sep 17, 2024
1 parent 75bd656 commit 013e513
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion databricks-vscode.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"jupyter.interactiveWindow.cellMarker.codeRegex": "^# COMMAND ----------|^# Databricks notebook source|^(#\\s*%%|#\\s*\\<codecell\\>|#\\s*In\\[\\d*?\\]|#\\s*In\\[ \\])",
"jupyter.interactiveWindow.cellMarker.default": "# COMMAND ----------"
}
}
8 changes: 4 additions & 4 deletions packages/databricks-vscode/src/utils/envVarGenerators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe(__filename, () => {
assert.deepEqual(actual, {
SPARK_CONNECT_USER_AGENT: "test/0.0.1",
DATABRICKS_PROJECT_ROOT: mockWorkspacePath.fsPath,
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "true",
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "1",
});
});

Expand All @@ -127,7 +127,7 @@ describe(__filename, () => {
assert.deepEqual(actual, {
SPARK_CONNECT_USER_AGENT: "existing test/0.0.1",
DATABRICKS_PROJECT_ROOT: mockWorkspacePath.fsPath,
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "true",
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "1",
});
});

Expand All @@ -150,7 +150,7 @@ describe(__filename, () => {
assert.deepEqual(actual, {
SPARK_CONNECT_USER_AGENT: "test/0.0.1",
DATABRICKS_PROJECT_ROOT: mockWorkspacePath.fsPath,
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "true",
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "1",
SPARK_REMOTE: `sc://${
Uri.parse(mockHost).authority
}:443/;token=token;use_ssl=true;x-databricks-cluster-id=${mockClusterId}`,
Expand All @@ -176,7 +176,7 @@ describe(__filename, () => {
assert.deepEqual(actual, {
SPARK_CONNECT_USER_AGENT: "test/0.0.1",
DATABRICKS_PROJECT_ROOT: mockWorkspacePath.fsPath,
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "true",
SPARK_CONNECT_PROGRESS_BAR_ENABLED: "1",
});
});
});
Expand Down

0 comments on commit 013e513

Please sign in to comment.