summaryrefslogtreecommitdiff
path: root/tests/test_isort.py
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-11-09 23:46:00 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-11-09 23:46:00 -0800
commita832e4b1d903b88e308c9be54fd8f4f376ae4e9a (patch)
tree6ad4688d3a47255b0395d6046e106a6a631ededc /tests/test_isort.py
parent4de01f5b1b98dca14fc4192fba7196cd4702d458 (diff)
downloadisort-a832e4b1d903b88e308c9be54fd8f4f376ae4e9a.tar.gz
Update tests to match new isort command line arguments
Diffstat (limited to 'tests/test_isort.py')
-rw-r--r--tests/test_isort.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_isort.py b/tests/test_isort.py
index b4d5b5d3..14af796d 100644
--- a/tests/test_isort.py
+++ b/tests/test_isort.py
@@ -3152,7 +3152,7 @@ def test_command_line(tmpdir, capfd, multiprocess: bool) -> None:
tmpdir.join("file2.py").write(
("import collections\nimport time\n\nimport abc" "\n\n\nimport isort")
)
- arguments = ["--rc", str(tmpdir), "--settings-path", os.getcwd()]
+ arguments = [str(tmpdir), "--settings-path", os.getcwd()]
if multiprocess:
arguments.extend(["--jobs", "2"])
main(arguments)
@@ -3180,7 +3180,7 @@ def test_quiet(tmpdir, capfd, quiet: bool) -> None:
tmpdir.join("file1.py").write("import re\nimport os")
tmpdir.join("file2.py").write("")
- arguments = ["--rc", str(tmpdir)]
+ arguments = [str(tmpdir)]
if quiet:
arguments.append("-q")
main(arguments)
@@ -3875,9 +3875,9 @@ def test_settings_path_skip_issue_909(tmpdir) -> None:
with pytest.raises(
Exception
): # without the settings path provided: the command should not skip & identify errors
- subprocess.run(["isort", "--check-only"], check=True)
+ subprocess.run(["isort", ".", "--check-only"], check=True)
result = subprocess.run(
- ["isort", "--check-only", "--settings-path=conf/.isort.cfg"],
+ ["isort", ".", "--check-only", "--settings-path=conf/.isort.cfg"],
stdout=subprocess.PIPE,
check=True,
)