summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2020-12-25 00:00:29 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2020-12-25 00:00:29 -0800
commitddf0d394653db7c19a7f9a78357caf080c36f11b (patch)
treeef25a51a08dc22681c167746a11da14fee57e274 /tests
parent59f635ab33c32925f0faa92835ee3e94fd785ad6 (diff)
downloadisort-ddf0d394653db7c19a7f9a78357caf080c36f11b.tar.gz
Fix test line lengths
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_regressions.py20
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/unit/test_regressions.py b/tests/unit/test_regressions.py
index 10bd3bf8..89fa0927 100644
--- a/tests/unit/test_regressions.py
+++ b/tests/unit/test_regressions.py
@@ -1493,19 +1493,25 @@ def test_isort_adding_second_comma_issue_1621():
"""
assert isort.check_code(
"""from .test import (
- TestTestTestTestTestTest2 as TestTestTestTestTestTest1, # Some really long comment bla bla bla bla bla
+ TestTestTestTestTestTest2 as TestTestTestTestTestTest1, """
+ """# Some really long comment bla bla bla bla bla
)
""",
profile="black",
show_diff=True,
)
- assert isort.code(
- """from .test import (
- TestTestTestTestTestTest2 as TestTestTestTestTestTest1 # Some really long comment bla bla bla bla bla
+ assert (
+ isort.code(
+ """from .test import (
+ TestTestTestTestTestTest2 as TestTestTestTestTestTest1 """
+ """# Some really long comment bla bla bla bla bla
)
""",
- profile="black",
- ) == """from .test import (
- TestTestTestTestTestTest2 as TestTestTestTestTestTest1, # Some really long comment bla bla bla bla bla
+ profile="black",
+ )
+ == """from .test import (
+ TestTestTestTestTestTest2 as TestTestTestTestTestTest1, """
+ """# Some really long comment bla bla bla bla bla
)
"""
+ )