File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def test_no_sections_mode_with_lazy_imports():
118118
119119
120120def test_from_first_option_respected_for_lazy ():
121- """When from_first=True, lazy from imports precede lazy straight imports but appear after eager imports."""
121+ """With from_first=True in one section, eager imports stay first and lazy from imports precede lazy straight imports."""
122122 isort_test (
123123 "import pathlib\n lazy import ast\n lazy from dataclasses import dataclass\n " ,
124124 "import pathlib\n lazy from dataclasses import dataclass\n lazy import ast\n " ,
@@ -127,7 +127,7 @@ def test_from_first_option_respected_for_lazy():
127127
128128
129129def test_force_sort_within_sections_applies_to_lazy ():
130- """force_sort_within_sections toggles lazy import ordering behavior ."""
130+ """force_sort_within_sections=False keeps straight-before-from; True interleaves and sorts lazy imports by module ."""
131131 isort_test (
132132 "lazy import zlib\n lazy from ast import parse\n " ,
133133 "lazy import zlib\n lazy from ast import parse\n " ,
You can’t perform that action at this time.
0 commit comments