Skip to content

Commit

Permalink
Add test case for issue #654
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Feb 2, 2018
1 parent 556e40a commit f54c0d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_isort.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ def test_line_length():
" lib18, lib20,\n"
" lib21, lib22)\n")

TEST_INPUT = ('from django.contrib.gis.gdal.field import (\n'
' OFTDate, OFTDateTime, OFTInteger, OFTInteger64, OFTReal, OFTString,\n'
' OFTTime,\n'
')\n') # Test case described in issue #654
assert SortImports(file_contents=TEST_INPUT, include_trailing_comma=True, line_length=79,
multi_line_output=WrapModes.VERTICAL_GRID_GROUPED).output == TEST_INPUT

test_output = SortImports(file_contents=REALLY_LONG_IMPORT, line_length=42, wrap_length=32).output
assert test_output == ("from third_party import (lib1,\n"
" lib2,\n"
Expand Down

0 comments on commit f54c0d7

Please sign in to comment.