diff options
| author | Andrew Konstantaras <akonsta@me.com> | 2018-01-24 15:19:05 -0800 |
|---|---|---|
| committer | Andrew Konstantaras <akonsta@me.com> | 2018-01-24 15:19:05 -0800 |
| commit | 8c3d31c61f065695497c50eb5c77343e569629d2 (patch) | |
| tree | 023068a5907f24fa3fd27e166331abed2fcc3f61 /test_isort.py | |
| parent | f831d631fdfd348ad959339d571dab77002fdb6f (diff) | |
| download | isort-8c3d31c61f065695497c50eb5c77343e569629d2.tar.gz | |
Fix 606, adding -k parameter to keep both direct and as imports and included a test, removed extra space in test
Diffstat (limited to 'test_isort.py')
| -rw-r--r-- | test_isort.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test_isort.py b/test_isort.py index 28672c3c..feaf7ccb 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1056,10 +1056,8 @@ 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 \n" - "import os as _os") - test_output = ("import os\n" - "import os as _os\n") + 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 |
