Skip to content

Commit 59bb638

Browse files
Update tests
1 parent 13fef96 commit 59bb638

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tests/test_config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,12 @@ class MockUname:
4242
def system(self):
4343
return 'TestOS'
4444

45-
# Clear all environment variables.
46-
for k in os.environ:
47-
monkeypatch.delenv(k, raising=False)
48-
4945
monkeypatch.setattr(platform, 'python_version', lambda: '3.0.0')
5046
monkeypatch.setattr(platform, 'uname', MockUname)
5147
monkeypatch.setenv('DATABRICKS_SDK_UPSTREAM', "upstream-product")
5248
monkeypatch.setenv('DATABRICKS_SDK_UPSTREAM_VERSION', "0.0.1")
5349
monkeypatch.setenv('DATABRICKS_RUNTIME_VERSION', "13.1 anything/else")
50+
monkeypatch.delenv('GITHUB_ACTIONS', raising=False)
5451

5552
config = Config(host='http://localhost', username="something", password="something", product='test',
5653
product_version='0.0.0') \

tests/test_core.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,12 @@ class MockUname:
178178
def system(self):
179179
return 'TestOS'
180180

181-
# Clear all environment variables.
182-
for k in os.environ:
183-
monkeypatch.delenv(k, raising=False)
184-
185181
monkeypatch.setattr(platform, 'python_version', lambda: '3.0.0')
186182
monkeypatch.setattr(platform, 'uname', MockUname)
187183
monkeypatch.setenv('DATABRICKS_SDK_UPSTREAM', "upstream-product")
188184
monkeypatch.setenv('DATABRICKS_SDK_UPSTREAM_VERSION', "0.0.1")
189185
monkeypatch.setenv('DATABRICKS_RUNTIME_VERSION', "13.1 anything/else")
186+
monkeypatch.delenv('GITHUB_ACTIONS', raising=False)
190187

191188
config = Config(host='http://localhost', username="something", password="something", product='test',
192189
product_version='0.0.0') \

0 commit comments

Comments
 (0)