MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions739 in github.com/PyCQA/isort

Functiontest_fuzz_show_unified_diff
(file_input, file_output, file_path, output)
tests/unit/test_format.py:125
Functiontest_fuzz_skip_line
(line, in_quote, index, section_comments, needs_import)
tests/unit/test_parse.py:77
Functiontest_fuzz_sort_imports
(file_name, config, check, ask_to_apply, write_to_stdout)
tests/unit/test_main.py:34
Functiontest_fuzz_vertical
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:368
Functiontest_fuzz_vertical_grid
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:409
Functiontest_fuzz_vertical_grid_grouped
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:450
Functiontest_fuzz_vertical_hanging_indent
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:491
Functiontest_fuzz_vertical_hanging_indent_bracket
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:532
Functiontest_fuzz_vertical_prefix_from_module_import
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:573
Functiontest_get_config_data
(tmpdir)
tests/unit/test_settings.py:158
Functiontest_get_config_data_with_toml_and_utf8
(tmpdir)
tests/unit/test_settings.py:194
Functiontest_git_hook
Simple smoke level testing of git hooks
tests/unit/test_hooks.py:8
Functiontest_git_hook_uses_the_configuration_file_specified_in_settings_path
(tmp_path: Path)
tests/unit/test_hooks.py:77
Functiontest_gitignore
(capsys, tmp_path: pathlib.Path)
tests/unit/test_main.py:1094
Functiontest_glob_known
Ensure that most specific placement control match wins
tests/unit/test_isort.py:2281
Functiontest_google_code_snippet_one
()
tests/unit/profiles/test_google.py:25
Functiontest_google_code_snippet_shared_example
Tests snippet examples directly shared with the isort project. See: https://github.com/PyCQA/isort/issues/1486.
tests/unit/profiles/test_google.py:8
Functiontest_google_code_snippet_two
()
tests/unit/profiles/test_google.py:235
Functiontest_habitat_lab
(tmpdir)
tests/integration/test_projects_using_isort.py:52
Functiontest_hanging_indent__with_include_trailing_comma__expect_same_result
(include_trailing_comma)
tests/unit/test_wrap_modes.py:257
Functiontest_happy_path
Test the most basic use case, straight imports no code, simply not organized by category.
tests/unit/test_isort.py:74
Functiontest_hug_code_snippet_one
()
tests/unit/profiles/test_hug.py:8
Functiontest_hug_code_snippet_three
()
tests/unit/profiles/test_hug.py:79
Functiontest_hug_code_snippet_two
()
tests/unit/profiles/test_hug.py:56
Functiontest_hypothesis
(tmpdir)
tests/integration/test_projects_using_isort.py:62
Functiontest_identify_imports_main
(tmpdir, capsys)
tests/unit/test_main.py:1052
Functiontest_ignore_whitespace
(capsys)
tests/unit/test_isort.py:3168
Functiontest_import_by_paren_issue_375
Test to ensure isort can correctly handle sorting imports where the paren is directly by the import body
tests/unit/test_isort.py:2922
Functiontest_import_by_paren_issue_460
Test to ensure isort can doesn't move comments around
tests/unit/test_isort.py:2930
Functiontest_import_case_produces_inconsistent_results_issue_472
Test to ensure sorting imports with same name but different case produces the same result across platforms
tests/unit/test_isort.py:3191
Functiontest_import_heading_issue_905
()
tests/unit/test_isort.py:4315
Functiontest_import_inside_class_issue_432
Test to ensure issue 432 is resolved and isort doesn't insert imports in the middle of classes
tests/unit/test_isort.py:3032
Functiontest_import_line_mangles_issues_439
Test to ensure comment on import with parens doesn't cause issues
tests/unit/test_isort.py:3062
Functiontest_import_line_mangles_issues_491
Test to ensure comment on import with parens doesn't cause issues
tests/unit/test_isort.py:3050
Functiontest_import_line_mangles_issues_505
Test to ensure comment on import with parens doesn't cause issues
tests/unit/test_isort.py:3056
Functiontest_import_sorting_shouldnt_be_endless_with_headers_issue_1454
isort should never enter an endless sorting loop. See: https://github.com/PyCQA/isort/issues/1454
tests/unit/test_regressions.py:1011
Functiontest_import_split_is_word_boundary_aware
Test to ensure that isort splits words in a boundary aware manner
tests/unit/test_isort.py:2459
Functiontest_import_star
Test to ensure isort handles star imports correctly
tests/unit/test_isort.py:1855
Functiontest_import_statement
()
tests/unit/test_wrap.py:8
Functiontest_import_wraps_with_comment_issue_471
Test to ensure issue #471 is resolved
tests/unit/test_isort.py:3175
Functiontest_importable
Simple smoketest to ensure all isort modules are importable
tests/unit/test_importable.py:8
Functiontest_include_trailing_comma
Test for the include_trailing_comma option
tests/unit/test_isort.py:1862
Functiontest_inconsistent_behavior_in_python_2_and_3_issue_479
Test to ensure Python 2 and 3 have the same behavior
tests/unit/test_isort.py:3208
Functiontest_inconsistent_relative_imports_issue_577
()
tests/unit/test_isort.py:3840
Functiontest_incorrect_grouping_when_comments_issue_1396
Test to ensure isort groups import correct independent of the comments present. See: https://github.com/pycqa/isort/issues/1396
tests/unit/test_regressions.py:545
Functiontest_indented
()
tests/unit/test_identify.py:267
Functiontest_indented_import_headings_issue_1604
Test to ensure it is possible to toggle import headings on indented import sections See: https://github.com/PyCQA/isort/issues/1604
tests/unit/test_ticketed_features.py:814
Functiontest_infinite_loop_in_unmatched_parenthesis
()
tests/unit/test_isort.py:5478
Methodtest_init
(self)
tests/unit/test_settings.py:15
Methodtest_init
(self)
tests/unit/test_exceptions.py:10
Methodtest_init_unsupported_settings_fails_gracefully
(self)
tests/unit/test_settings.py:18
Methodtest_invalid_profile
(self)
tests/unit/test_settings.py:40
Methodtest_invalid_pyversion
(self)
tests/unit/test_settings.py:36
Methodtest_invalid_settings_path
(self)
tests/unit/test_settings.py:32
Functiontest_invalid_sort_type
()
tests/unit/test_literal.py:17
Functiontest_invalid_syntax
()
tests/unit/test_literal.py:12
Methodtest_is_skipped
(self)
tests/unit/test_settings.py:44
Methodtest_is_supported_filetype
(self)
tests/unit/test_settings.py:48
Methodtest_is_supported_filetype_configuration
(self, tmpdir)
tests/unit/test_settings.py:76
Methodtest_is_supported_filetype_defaults
(self, tmpdir)
tests/unit/test_settings.py:71
Methodtest_is_supported_filetype_editor_backup
(self, tmpdir)
tests/unit/test_settings.py:66
Methodtest_is_supported_filetype_fifo
(self, tmpdir)
tests/unit/test_settings.py:84
Methodtest_is_supported_filetype_ioerror
(self, tmpdir)
tests/unit/test_settings.py:57
Methodtest_is_supported_filetype_shebang
(self, tmpdir)
tests/unit/test_settings.py:61
Functiontest_isort_adding_second_comma_issue_1621
Ensure isort doesn't add a second comma when very long comment is present See: https://github.com/PyCQA/isort/issues/1621.
tests/unit/test_regressions.py:1489
Functiontest_isort_allows_reversing_sort_order_issue_1645
isort allows reversing the sort order for those who prefer Z or longer imports first. see: https://github.com/PyCQA/isort/issues/1688
tests/unit/test_ticketed_features.py:883
Functiontest_isort_allows_setting_import_types_issue_1181
Test to ensure isort provides a way to set the type of imports. See: https://github.com/pycqa/isort/issues/1181
tests/unit/test_ticketed_features.py:362
Functiontest_isort_auto_detects_and_ignores_invalid_from_imports_issue_1688
isort should automatically detect and ignore incorrectly written from import statements see: https://github.com/PyCQA/isort/issues/1688
tests/unit/test_ticketed_features.py:862
Functiontest_isort_automatically_removes_duplicate_aliases_issue_1193
Test to ensure isort can automatically remove duplicate aliases. See: https://github.com/pycqa/isort/issues/1281
tests/unit/test_ticketed_features.py:32
Functiontest_isort_can_combine_reverse_sort_with_force_sort_within_sections_issue_1726
isort should support reversing import order even with force sort within sections turned on. See: https://github.com/PyCQA/isort/issues/1726
tests/unit/test_ticketed_features.py:936
Functiontest_isort_can_push_star_imports_above_others_issue_1504
isort should provide a way to push star imports above other imports to avoid explicit imports from being overwritten. see: https://github.com/
tests/unit/test_ticketed_features.py:913
Functiontest_isort_can_turn_off_import_adds_with_action_comment_issue_1737
()
tests/unit/test_ticketed_features.py:969
Functiontest_isort_correctly_handles_unix_vs_linux_newlines_issue_1566
()
tests/unit/test_regressions.py:1611
Functiontest_isort_doesnt_float_to_top_correctly_when_imports_not_at_top_issue_1382
isort should float existing imports to the top, if they are currently below the top. See: https://github.com/PyCQA/isort/issues/1382
tests/unit/test_regressions.py:799
Functiontest_isort_doesnt_lose_imports_or_comments
(config: isort.Config, disregard_skip: bool)
tests/integration/test_setting_combinations.py:1868
Functiontest_isort_doesnt_mangle_code_when_adding_imports_issue_1444
isort should NEVER mangle code. This particularly nasty and easy to reproduce bug, caused isort to produce invalid code just by adding a single im
tests/unit/test_regressions.py:701
Functiontest_isort_doesnt_misplace_add_import_issue_1445
Test to ensure isort won't misplace an added import depending on docstring position See: https://github.com/PyCQA/isort/issues/1445
tests/unit/test_regressions.py:669
Functiontest_isort_doesnt_misplace_comments_issue_1431
Test to ensure isort won't misplace comments. See: https://github.com/PyCQA/isort/issues/1431
tests/unit/test_regressions.py:655
Functiontest_isort_doesnt_remove_as_imports_when_combine_star_issue_1380
Test to ensure isort will not remove as imports along side other imports when requested to combine star imports together. See: https://github.
tests/unit/test_ticketed_features.py:421
Functiontest_isort_doesnt_rewrite_import_with_dot_to_from_import_issue_1280
Test to ensure isort doesn't rewrite imports in the from of import y.x into from y import x. This is because they are not technically fully equiva
tests/unit/test_regressions.py:355
Functiontest_isort_duplicating_comments_issue_1264
Ensure isort doesn't duplicate comments when force_sort_within_sections is set to `True` as was the case in issue #1264: https://github.com/pycqa/
tests/unit/test_regressions.py:10
Functiontest_isort_enables_deduping_section_headers_issue_953
isort should provide a way to only have identical import headings show up once. See: https://github.com/pycqa/isort/issues/953
tests/unit/test_ticketed_features.py:386
Functiontest_isort_enables_floating_imports_to_top_of_module_issue_1228
Test to ensure isort will allow floating all non-indented imports to the top of a file. See: https://github.com/pycqa/isort/issues/1228.
tests/unit/test_ticketed_features.py:45
Functiontest_isort_ensures_blank_line_between_import_and_comment
()
tests/unit/test_isort.py:4371
Functiontest_isort_filename_overrides
Tests isorts available approaches for overriding filename and extension based behavior
tests/unit/test_main.py:365
Functiontest_isort_float_to_top_correctly_identifies_single_line_comments_1499
Test to ensure isort correctly handles the case where float to top is used to push imports to the top and the top comment is a multiline type but
tests/unit/test_regressions.py:1166
Functiontest_isort_float_to_top_overrides
Tests isorts supports overriding float to top from CLI
tests/unit/test_main.py:442
Functiontest_isort_float_to_top_with_sort_on_off_tests
Characterization test for current behaviour of float-to-top on isort: on/off sections. - imports in isort:off sections stay where they are - i
tests/unit/test_regressions.py:724
Functiontest_isort_intelligently_places_noqa_comments_issue_1456
()
tests/unit/test_ticketed_features.py:471
Functiontest_isort_is_idempotent
(source_code: str, config: isort.Config, disregard_skip: bool)
tests/integration/test_hypothesmith.py:92
Functiontest_isort_is_idempotent
(config: isort.Config, disregard_skip: bool)
tests/integration/test_setting_combinations.py:1012
Functiontest_isort_keeps_comments_issue_691
()
tests/unit/test_isort.py:4336
Functiontest_isort_losing_imports_vertical_prefix_from_module_import_wrap_mode_issue_1542
Ensure isort doesn't lose imports when a comment is combined with an import and wrap mode VERTICAL_PREFIX_FROM_MODULE_IMPORT is used. See: htt
tests/unit/test_regressions.py:1453
Functiontest_isort_multiline_with_tab_issue_1714
()
tests/unit/test_isort.py:4363
Functiontest_isort_nested_imports
Ensure imports in a nested block get sorted correctly
tests/unit/test_isort.py:4526
Functiontest_isort_off
Test that isort can be turned on and off at will using comments
tests/unit/test_isort.py:4554
Functiontest_isort_off_and_on
Test so ensure isort: off action comment and associated on action comment work together
tests/unit/test_action_comments.py:6
Functiontest_isort_provides_official_api_for_diff_output_issue_1335
Test to ensure isort API for diff capturing allows capturing diff without sys.stdout. See: https://github.com/pycqa/isort/issues/1335.
tests/unit/test_ticketed_features.py:161
Functiontest_isort_respects_quiet_from_sort_file_api_see_1461
Test to ensure isort respects the quiet API parameter when passed in via the API. See: https://github.com/PyCQA/isort/issues/1461.
tests/unit/test_ticketed_features.py:538
Functiontest_isort_should_be_able_to_add_independent_of_doc_string_placement_issue_1420
isort should be able to know when an import requested to be added is successfully added, independent of where the top doc string is located. S
tests/unit/test_regressions.py:627
← previousnext →401–500 of 739, ranked by callers