diff options
| author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2018-01-24 15:43:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-24 15:43:33 -0800 |
| commit | 01774c12ffc386fc7ec3226fa34852f6e7c71fbe (patch) | |
| tree | 920f4e7097999bea7167848def50f78f233d8964 /test_isort.py | |
| parent | 8048b77e65eaed6780358498c03e296e6e650a29 (diff) | |
| parent | fc85cc93b90bb3d2a6426728b35a5827ea14e717 (diff) | |
| download | isort-01774c12ffc386fc7ec3226fa34852f6e7c71fbe.tar.gz | |
Merge pull request #642 from akonsta/Fix606
Fix606
Diffstat (limited to 'test_isort.py')
| -rw-r--r-- | test_isort.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py index bec4db00..9bcaf4aa 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1056,6 +1056,9 @@ def test_combined_from_and_as_imports(): "from translate.storage import base, factory\n" "from translate.storage.placeables import general, parse as rich_parse\n") assert SortImports(file_contents=test_input, combine_as_imports=True).output == test_input + test_input = ("import os \nimport os as _os") + test_output = ("import os\nimport os as _os\n") + assert SortImports(file_contents=test_input, keep_direct_and_as_imports=True).output == test_output def test_as_imports_with_line_length(): |
