Skip to content

Commit

Permalink
Ensure lack of setting population for editor config gets detected
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Aug 14, 2020
1 parent ed22d44 commit f7c7bdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f7c7bdc

Please sign in to comment.