analytics: tests: migrate to dir helpers

This commit is contained in:
pawel
2020-01-06 15:49:26 +01:00
parent 8041d70552
commit bb72ce8a50
+2 -2
View File
@@ -83,8 +83,8 @@ def test_send(mock_post, tmp_path):
({"analytics": "false", "unknown": "broken"}, False),
],
)
def test_is_enabled(dvc_repo, config, result, monkeypatch, tmp_global_config):
configobj = dvc_repo.config._repo_config
def test_is_enabled(dvc, config, result, monkeypatch, tmp_global_config):
configobj = dvc.config._repo_config
configobj["core"] = config
configobj.write()