Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
test_config: don't fail mocking if KUBECONFIG is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
thilp committed Jun 20, 2019
1 parent e6ed169 commit bb33880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_from_default_kubeconfig(kubeconfig_env, expected_path, monkeypatch, kub
monkeypatch.setattr('os.path.expanduser', mock)

if kubeconfig_env is None:
monkeypatch.delenv('KUBECONFIG')
monkeypatch.delenv('KUBECONFIG', raising=False)
else:
monkeypatch.setenv('KUBECONFIG', kubeconfig_env)

Expand Down

0 comments on commit bb33880

Please sign in to comment.