We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5674a commit bb6ba4fCopy full SHA for bb6ba4f
tests/integration/fixtures/test_connect.py
@@ -5,12 +5,19 @@
5
6
@fixture
7
def serverless_env():
8
- os.environ['DATABRICKS_SERVERLESS_COMPUTE_ID'] = 'auto'
+ os.environ['DATABRICKS_SERVERLESS_COMPUTE_ID'] = "auto"
9
yield
10
os.environ.pop('DATABRICKS_SERVERLESS_COMPUTE_ID')
11
12
13
-def test_databricks_connect(ws, spark):
+@fixture
14
+def debug_env_bugfix(monkeypatch, debug_env):
15
+ # This is a workaround to set shared cluster
16
+ # TODO: Update secret vault for acceptance testing and remove the bugfix
17
+ monkeypatch.setitem(debug_env, "DATABRICKS_CLUSTER_ID", "1114-152544-29g1w07e")
18
+
19
20
+def test_databricks_connect(debug_env_bugfix, ws, spark):
21
rows = spark.sql("SELECT 1").collect()
22
assert rows[0][0] == 1
23
0 commit comments