Skip to content

Commit a0989a7

Browse files
CopilotDanielNoord
andauthored
Clarify lazy import test docstrings per review
Agent-Logs-Url: https://github.com/PyCQA/isort/sessions/598e293a-0a92-45ab-9a4e-089fc26c97b4 Co-authored-by: DanielNoord <13665637+DanielNoord@users.noreply.github.com>
1 parent 88c3627 commit a0989a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/test_lazy_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_no_sections_mode_with_lazy_imports():
118118

119119

120120
def 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\nlazy import ast\nlazy from dataclasses import dataclass\n",
124124
"import pathlib\nlazy from dataclasses import dataclass\nlazy import ast\n",
@@ -127,7 +127,7 @@ def test_from_first_option_respected_for_lazy():
127127

128128

129129
def 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\nlazy from ast import parse\n",
133133
"lazy import zlib\nlazy from ast import parse\n",

0 commit comments

Comments
 (0)