Skip to content

Commit

Permalink
chore: fix unit test if config file exists locally
Browse files Browse the repository at this point in the history
Closes #1764
  • Loading branch information
JohnVillalovos committed Dec 19, 2021
1 parent 3ee061c commit c80b3b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/test_config.py
Expand Up @@ -126,8 +126,10 @@ def test_env_config_missing_file_raises(monkeypatch):
config._get_config_files()


def test_env_config_not_defined_does_not_raise(mock_clean_env):
assert config._get_config_files() == []
def test_env_config_not_defined_does_not_raise(mock_clean_env, monkeypatch):
with monkeypatch.context() as m:
m.setattr(config, "_DEFAULT_FILES", [])
assert config._get_config_files() == []


def test_default_config(mock_clean_env, monkeypatch):
Expand Down

0 comments on commit c80b3b7

Please sign in to comment.