Skip to content

Commit

Permalink
Fix test line lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Dec 25, 2020
1 parent 59f635a commit ddf0d39
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/unit/test_regressions.py
Expand Up @@ -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
)
"""
)

0 comments on commit ddf0d39

Please sign in to comment.