diff options
| author | Samuel Gaist <samuel.gaist@idiap.ch> | 2021-09-28 23:24:57 +0200 |
|---|---|---|
| committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2021-09-30 22:16:56 +0200 |
| commit | 960d208ae5be5e7b0391c17fd3d31408adb1538e (patch) | |
| tree | 9979694a2f28cd7badc36988763618d74eb09738 /tests/integration | |
| parent | 995e016b9d888fea02bedeb5be8ea7f01b694b58 (diff) | |
| download | isort-960d208ae5be5e7b0391c17fd3d31408adb1538e.tar.gz | |
feature: implement lines before imports
Diffstat (limited to 'tests/integration')
| -rw-r--r-- | tests/integration/test_hypothesmith.py | 1 | ||||
| -rw-r--r-- | tests/integration/test_setting_combinations.py | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/integration/test_hypothesmith.py b/tests/integration/test_hypothesmith.py index 94964cee..2c8b4a48 100644 --- a/tests/integration/test_hypothesmith.py +++ b/tests/integration/test_hypothesmith.py @@ -40,6 +40,7 @@ def configs(**force_strategies: st.SearchStrategy) -> st.SearchStrategy[isort.Co "sections", "known_future_library", "forced_separate", + "lines_before_imports", "lines_after_imports", "lines_between_sections", "lines_between_types", diff --git a/tests/integration/test_setting_combinations.py b/tests/integration/test_setting_combinations.py index d2159fd3..cda39a60 100644 --- a/tests/integration/test_setting_combinations.py +++ b/tests/integration/test_setting_combinations.py @@ -29,6 +29,7 @@ def configs() -> st.SearchStrategy[isort.Config]: "known_local_folder", "extra_standard_library", "forced_separate", + "lines_before_imports", "lines_after_imports", "add_imports", "lines_between_sections", @@ -557,6 +558,7 @@ else: # 2.x use_parentheses=True, order_by_type=True, atomic=False, + lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, @@ -863,6 +865,7 @@ else: # 2.x "use_parentheses": False, "order_by_type": True, "atomic": False, + "lines_before_imports": -1, "lines_after_imports": -1, "lines_between_sections": 1, "lines_between_types": 0, @@ -1418,6 +1421,7 @@ def test_isort_is_idempotent(config: isort.Config, disregard_skip: bool) -> None use_parentheses=True, order_by_type=True, atomic=False, + lines_before_imports=-1, lines_after_imports=-1, lines_between_sections=1, lines_between_types=0, @@ -1724,6 +1728,7 @@ def test_isort_is_idempotent(config: isort.Config, disregard_skip: bool) -> None "use_parentheses": False, "order_by_type": True, "atomic": False, + "lines_before_imports": -1, "lines_after_imports": -1, "lines_between_sections": 1, "lines_between_types": 0, |
