summaryrefslogtreecommitdiff
path: root/test_isort.py
diff options
context:
space:
mode:
authorAndrew Konstantaras <akonsta@me.com>2018-01-24 15:19:05 -0800
committerAndrew Konstantaras <akonsta@me.com>2018-01-24 15:19:05 -0800
commit8c3d31c61f065695497c50eb5c77343e569629d2 (patch)
tree023068a5907f24fa3fd27e166331abed2fcc3f61 /test_isort.py
parentf831d631fdfd348ad959339d571dab77002fdb6f (diff)
downloadisort-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.py6
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