Skip to content

Commit 2a4d911

Browse files
authored
test: avoid local env impacting unit test (#143)
1 parent 1fc26f5 commit 2a4d911

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/unit/test_session.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,6 +2229,7 @@ def test_builder_pattern_system_label_protection(
22292229
)
22302230
self.stopSession(mock_session_controller_client_instance, session)
22312231

2232+
@mock.patch.dict(os.environ, {}, clear=True)
22322233
@mock.patch("google.auth.default")
22332234
@mock.patch("google.cloud.dataproc_v1.SessionControllerClient")
22342235
@mock.patch("pyspark.sql.connect.client.SparkConnectClient.config")

0 commit comments

Comments
 (0)