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

Lines changed: 4 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy