diff options
-rw-r--r-- | test_isort.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test_isort.py b/test_isort.py index bb302bc5..2aeb474c 100644 --- a/test_isort.py +++ b/test_isort.py @@ -1246,3 +1246,9 @@ def test_top_comments(): test_input = ("# -*- coding\n" "import sys\n") assert SortImports(file_contents=test_input).output == test_input + + +def test_consistency(): + """Ensures consistency of handling even when dealing with non ordered-by-type imports""" + test_input = "from sqlalchemy.dialects.postgresql import ARRAY, array\n" + assert SortImports(file_contents=test_input, order_by_type=False).output == test_input |