summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2021-06-10 01:49:59 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2021-06-10 01:49:59 -0700
commitb2d5c47de6d24cd10b7e985aa6b6ce6c1abc3e10 (patch)
treec683293c35c322df84fb3ecf635bd374998f9963 /tests
parentbfbbdb638d99d3d0a7ef52a0f0c6d0dc907cf3b4 (diff)
downloadisort-b2d5c47de6d24cd10b7e985aa6b6ce6c1abc3e10.tar.gz
Formatting
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_regressions.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py
index 615c7887..ea657151 100644
--- a/tests/unit/test_regressions.py
+++ b/tests/unit/test_regressions.py
@@ -1,9 +1,10 @@
"""A growing set of tests designed to ensure isort doesn't have regressions in new versions"""
from io import StringIO
-import isort
import pytest
+import isort
+
def test_isort_duplicating_comments_issue_1264():
"""Ensure isort doesn't duplicate comments when force_sort_within_sections is set to `True`
@@ -1710,14 +1711,16 @@ from src import abcd, efg, \\
@pytest.mark.parametrize("multi_line_output", range(12))
-def test_isort_should_never_quietly_remove_imports_in_any_hangin_mode_issue_1741(multi_line_output: int):
+def test_isort_should_never_quietly_remove_imports_in_any_hangin_mode_issue_1741(
+ multi_line_output: int,
+):
sorted_code = isort.code(
- """
+ """
from src import abcd, qwerty, efg, xyz # some comment
""",
- line_length=30,
- multi_line_output=multi_line_output,
- )
+ line_length=30,
+ multi_line_output=multi_line_output,
+ )
assert "abcd" in sorted_code
assert "qwerty" in sorted_code
assert "efg" in sorted_code