diff --git a/tests/test_isort.py b/tests/test_isort.py index d46862f09..44dc93e6b 100644 --- a/tests/test_isort.py +++ b/tests/test_isort.py @@ -54,9 +54,12 @@ def default_settings_path(tmpdir_factory) -> Iterator[str]: config_dir = tmpdir_factory.mktemp("config") config_file = config_dir.join(".editorconfig").strpath + with open(config_file, "w") as editorconfig: editorconfig.write(TEST_DEFAULT_CONFIG) + assert Config(config_file).known_other + with config_dir.as_cwd(): yield config_dir.strpath