summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-03-23 21:40:36 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-23 21:40:36 -0700
commit03741dbdb3d4292d058257d09dc1e58cd020bb81 (patch)
treeec343b9f3e21b185a42a2a1c8753fc93ac2409de
parentd3be87ea58b1dab67ae76db5c9980b356f5893e6 (diff)
downloadisort-03741dbdb3d4292d058257d09dc1e58cd020bb81.tar.gz
Add both cases to test
-rw-r--r--test_isort.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py
index 7c44dd3f..df46a75a 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -2913,6 +2913,8 @@ def test_settings_path_skip_issue_909(tmpdir):
test_run_directory = os.getcwd()
os.chdir(str(base_dir))
+ with pytest.raises(Exception): # without the settings path provided: the command should not skip & identify errors
+ check_output(['isort', '--check-only'])
results = check_output(['isort', '--check-only', '--settings-path=conf/.isort.cfg'])
os.chdir(str(test_run_directory))