From c80b3b75aff53ae228ec05ddf1c1e61d91762846 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sun, 19 Dec 2021 15:13:43 -0800 Subject: [PATCH] chore: fix unit test if config file exists locally Closes #1764 --- tests/unit/test_config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index c58956401..6874e94e9 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -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): 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