Skip to content

Commit c80b3b7

Browse files
chore: fix unit test if config file exists locally
Closes #1764
1 parent 3ee061c commit c80b3b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/unit/test_config.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ def test_env_config_missing_file_raises(monkeypatch):
126126
config._get_config_files()
127127

128128

129-
def test_env_config_not_defined_does_not_raise(mock_clean_env):
130-
assert config._get_config_files() == []
129+
def test_env_config_not_defined_does_not_raise(mock_clean_env, monkeypatch):
130+
with monkeypatch.context() as m:
131+
m.setattr(config, "_DEFAULT_FILES", [])
132+
assert config._get_config_files() == []
131133

132134

133135
def test_default_config(mock_clean_env, monkeypatch):

0 commit comments

Comments
 (0)