From 55960154c54338dbe68e547a3df39b7927f96175 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Mon, 2 Dec 2019 17:35:50 -0600 Subject: [PATCH] analytics: document why tmp_global_config is needed --- tests/unit/test_analytics.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/test_analytics.py b/tests/unit/test_analytics.py index e48e4972d..b54b8132e 100644 --- a/tests/unit/test_analytics.py +++ b/tests/unit/test_analytics.py @@ -8,6 +8,9 @@ from dvc.utils.compat import builtin_str, str @pytest.fixture def tmp_global_config(tmp_path): + """ + Fixture to prevent modifying the actual global config + """ with mock.patch( "dvc.config.Config.get_global_config_dir", return_value=tmp_path ):