1 parent 59d66dd commit f5a4d0fCopy full SHA for f5a4d0f
1 file changed
tests/test_config_file.py
@@ -194,11 +194,11 @@ def test_multiple_config_files_raises_exception(tmp_path: pathlib.Path) -> None:
194
json_conf_file.touch()
195
yaml_conf_file = tmp_path / ".vcspull.yaml"
196
yaml_conf_file.touch()
197
- with EnvironmentVarGuard() as env, pytest.raises(exc.MultipleConfigWarning):
198
- env.set("HOME", str(tmp_path))
199
- assert pathlib.Path.home() == tmp_path
200
201
- config.find_home_config_files()
+ with EnvironmentVarGuard() as env:
+ env.set("HOME", str(tmp_path))
+ with pytest.raises(exc.MultipleConfigWarning):
+ config.find_home_config_files()
202
203
204
def test_in_dir(
0 commit comments