MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions739 in github.com/PyCQA/isort

Functiontest_products_zopetree
(tmpdir)
tests/integration/test_projects_using_isort.py:88
Functiontest_pycharm_snippet_one
()
tests/unit/profiles/test_pycharm.py:8
Functiontest_pyi_formatting_issue_942
(tmpdir)
tests/unit/test_isort.py:4440
Functiontest_pylint
(tmpdir)
tests/integration/test_projects_using_isort.py:57
Functiontest_pylint_comments_incorrectly_wrapped_issue_571
Test to ensure pylint comments don't get wrapped
tests/unit/test_isort.py:3373
Functiontest_pyproject_conf_file
Ensure that modules for custom sections parsed as list from config file and isort result is correct
tests/unit/test_isort.py:2644
Functiontest_pyramid
(tmpdir)
tests/integration/test_projects_using_isort.py:80
Functiontest_python_future_category
Test to ensure a manual python future category will work as needed to install aliases see: Issue #1005
tests/unit/test_isort.py:5235
Functiontest_python_version
()
tests/unit/test_isort.py:4496
Functiontest_qa_comment_case
()
tests/unit/test_isort.py:598
Functiontest_quiet
(tmpdir, capfd, quiet: bool)
tests/unit/test_isort.py:3719
Functiontest_quotes_in_file
Ensure imports within triple quotes don't get imported.
tests/unit/test_isort.py:970
Functiontest_ran_against_root
()
tests/unit/test_main.py:156
Methodtest_read
(self, tmpdir)
tests/unit/test_io.py:12
Functiontest_reexport
()
tests/unit/test_isort.py:5496
Functiontest_reexport_bare
()
tests/unit/test_isort.py:5537
Functiontest_reexport_leave_alone_if_not_enabled
()
tests/unit/test_isort.py:5504
Functiontest_reexport_list
()
tests/unit/test_isort.py:5521
Functiontest_reexport_multiline
()
tests/unit/test_isort.py:5510
Functiontest_reexport_multiline_import
()
tests/unit/test_isort.py:5577
Functiontest_reexport_multiline_in_center
()
tests/unit/test_isort.py:5594
Functiontest_reexport_multiline_long_rollback
()
tests/unit/test_isort.py:5615
Functiontest_reexport_no_spaces
()
tests/unit/test_isort.py:5545
Functiontest_reexport_not_first_line
()
tests/unit/test_isort.py:5553
Functiontest_reexport_not_last_line
()
tests/unit/test_isort.py:5565
Functiontest_reexport_set
()
tests/unit/test_isort.py:5529
Functiontest_relative_import_of_a_module
Imports can be dynamically created (PEP302) and is used by modules such as six. This test ensures that these types of imports are still sorted to
tests/unit/test_isort.py:3501
Functiontest_relative_import_with_space
Tests the case where the relation and the module that is being imported from is separated with a space.
tests/unit/test_isort.py:1575
Functiontest_remove_imports
Ensures removing imports works as expected.
tests/unit/test_isort.py:933
Functiontest_reverse_relative_combined_with_force_sort_within_sections_issue_1395
Test to ensure reverse relative combines well with other common isort settings. See: https://github.com/pycqa/isort/issues/1395.
tests/unit/test_regressions.py:607
Functiontest_reverse_relative_imports_issue_417
()
tests/unit/test_isort.py:3822
Functiontest_reverse_sort_relative_in_force_sorted_sections_issue_1659
Ensure reverse ordered relative imports are sorted within sections
tests/unit/test_isort.py:3291
Functiontest_safety_skips
(tmpdir, enabled: bool)
tests/unit/test_isort.py:3735
Functiontest_same_line_statements
Ensure isort correctly handles the case where a single line contains multiple statements including an import
tests/unit/test_isort.py:2073
Functiontest_sections_parsed_correct
Ensure that modules for custom sections parsed as list from config file and isort result is correct
tests/unit/test_isort.py:2619
Functiontest_semicolon_ignored_for_dynamic_lines_after_import_issue_1178
Test to ensure even if a semicolon is in the decorator in the line following an import the correct line spacing determination will be made. Se
tests/unit/test_ticketed_features.py:15
Functiontest_settings_overwrite
Test to ensure settings overwrite instead of trying to combine.
tests/unit/test_isort.py:1752
Functiontest_settings_path_skip_issue_909
(tmpdir)
tests/unit/test_isort.py:4217
Functiontest_shouldnt_add_lines
Ensure that isort doesn't add a blank line when a top of import comment is present, See: issue #316
tests/unit/test_isort.py:2611
Functiontest_show_files
(capsys, tmpdir)
tests/unit/test_main.py:120
Functiontest_similar_to_std_library
Test to ensure modules that are named similarly to a standard library import don't end up clobbered
tests/unit/test_isort.py:1963
Functiontest_single_line_exclusions
()
tests/unit/test_isort.py:5066
Functiontest_single_multiline
Test the case where a single import spawns multiple lines.
tests/unit/test_isort.py:1608
Functiontest_skip
Ensure skipping a single import will work as expected.
tests/unit/test_isort.py:806
Functiontest_skip_glob
(tmpdir, skip_glob_assert: tuple[list[str], int, set[str]])
tests/unit/test_isort.py:3782
Functiontest_skip_paths_issue_938
(tmpdir)
tests/unit/test_isort.py:4247
Functiontest_skip_with_file_name
Ensure skipping a file works even when file_contents is provided.
tests/unit/test_isort.py:826
Functiontest_skip_within_file
Ensure skipping a whole file works.
tests/unit/test_isort.py:835
Functiontest_smart_lines_after_import_section
Tests the default 'smart' behavior for dealing with lines after the import section
tests/unit/test_isort.py:1717
Functiontest_sort_code_string_mixed_newlines
()
tests/unit/test_api.py:88
Functiontest_sort_configurable_sort_issue_1732
Test support for pluggable isort sort functions.
tests/unit/test_ticketed_features.py:1019
Functiontest_sort_file
(benchmark, imperfect)
tests/benchmark/test_api.py:18
Functiontest_sort_file
(imperfect)
tests/unit/test_api.py:33
Functiontest_sort_file_in_place
(benchmark, imperfect)
tests/benchmark/test_api.py:26
Functiontest_sort_file_in_place
(imperfect)
tests/unit/test_api.py:38
Functiontest_sort_file_to_stdout
(capsys, imperfect)
tests/unit/test_api.py:43
Functiontest_sort_file_with_bad_syntax
(tmpdir)
tests/unit/test_api.py:24
Functiontest_sort_imports
(tmpdir)
tests/unit/test_main.py:44
Functiontest_sort_imports_error_handling
(tmpdir, capsys)
tests/unit/test_main.py:58
Functiontest_sort_on_number
Ensure numbers get sorted logically (10 > 9 not the other way around)
tests/unit/test_isort.py:163
Functiontest_sort_relative_in_force_sorted_sections_issue_1659
Ensure relative imports are sorted within sections
tests/unit/test_isort.py:3274
Functiontest_sort_within_section
Test to ensure its possible to force isort to sort within sections
tests/unit/test_isort.py:2697
Functiontest_sort_within_section_case_honored
Ensure isort can do partial case-sensitive sorting in force-sorted sections
tests/unit/test_isort.py:2747
Functiontest_sort_within_section_comments_issue_436
Test to ensure sort within sections leaves comments untouched
tests/unit/test_isort.py:3218
Functiontest_sort_within_sections_with_force_to_top_issue_473
Test to ensure it's possible to sort within sections with items forced to top
tests/unit/test_isort.py:3232
Functiontest_sorted_imports_multiple_configs
()
tests/unit/test_api.py:76
Functiontest_sorting_with_two_top_comments
Test to ensure isort will sort files that contain 2 top comments
tests/unit/test_isort.py:2802
Functiontest_split_on_trailing_comma
()
tests/unit/test_isort.py:5450
Functiontest_split_on_trailing_comma_wih_as
()
tests/unit/test_isort.py:5466
Functiontest_split_position
Ensure isort splits on import instead of . when possible
tests/unit/test_isort.py:2110
Methodtest_src_paths_are_combined_and_deduplicated
(self)
tests/unit/test_settings.py:89
Methodtest_src_paths_supports_glob_expansion
(self, tmp_path)
tests/unit/test_settings.py:94
Functiontest_standard_library_deprecates_user_issue_778
()
tests/unit/test_isort.py:4211
Functiontest_sticky_comments
Test to ensure it is possible to make comments 'stick' above imports
tests/unit/test_isort.py:2327
Functiontest_stream_skip_file
(tmpdir, capsys)
tests/unit/test_main.py:912
Functiontest_strict_whitespace_by_default
(capsys)
tests/unit/test_isort.py:3153
Functiontest_strict_whitespace_no_closing_newline_issue_676
(capsys)
tests/unit/test_isort.py:3161
Functiontest_sys_path_mutation
Test to ensure sys.path is not modified
tests/unit/test_isort.py:3000
Functiontest_tab_character_in_import
Ensure isort correctly handles import statements that contain a tab character
tests/unit/test_isort.py:2104
Functiontest_third_party_case_sensitive
Modules which match builtins by name but not on case should not be picked up on Windows.
tests/unit/test_isort.py:2976
Functiontest_thirdy_party_overrides_standard_section
Test to ensure changing the default section works as expected.
tests/unit/test_isort.py:1116
Functiontest_titled_and_footered_imports
Tests setting custom footers to import sections.
tests/unit/test_isort.py:1395
Functiontest_titled_imports
Tests setting custom titled/commented import sections.
tests/unit/test_isort.py:1254
Functiontest_to_ensure_correctly_handling_of_whitespace_only_issue_811
( ws: str, capsys: pytest.CaptureFixture[str], )
tests/unit/test_isort.py:4200
Functiontest_to_ensure_empty_line_not_added_to_file_start_issue_889
()
tests/unit/test_isort.py:4194
Functiontest_to_ensure_importing_from_imports_module_works_issue_662
()
tests/unit/test_isort.py:3575
Functiontest_to_ensure_imports_are_brought_to_top_issue_651
()
tests/unit/test_isort.py:3554
Functiontest_to_ensure_no_unexpected_changes_issue_666
()
tests/unit/test_isort.py:3587
Functiontest_to_ensure_tabs_dont_become_space_issue_665
()
tests/unit/test_isort.py:3606
Functiontest_top_comments
Ensure correct behavior with top comments
tests/unit/test_isort.py:2366
Functiontest_top_doc_string
()
tests/unit/test_identify.py:33
Functiontest_top_level_import_order
()
tests/unit/test_isort.py:5011
Functiontest_top_of_line_comments
Test to ensure top of line comments stay where they should: issue 260
tests/unit/test_isort.py:2588
Functiontest_top_only
()
tests/unit/test_identify.py:11
Functiontest_trailing_comma_doesnt_introduce_broken_code_with_comment_and_wrap_issue_1302
Tests to assert the combination of include_trailing_comma and a wrapped line doesn't break. See: https://github.com/pycqa/isort/issues/1302.
tests/unit/test_regressions.py:214
Functiontest_treating_comments_as_code_issue_1357
Test to ensure isort provides a way to treat comments as code. See: https://github.com/pycqa/isort/issues/1357
tests/unit/test_ticketed_features.py:242
Functiontest_trie
()
tests/unit/test_utils.py:4
Functiontest_unindented_comment_in_indented_block_issue_1899
Test that unindented comments before indented imports are not corrupted. See: https://github.com/PyCQA/isort/issues/1899
tests/unit/test_ticketed_features.py:1078
Functiontest_unsupported_encodings
(tmpdir, capsys)
tests/unit/test_main.py:882
Functiontest_unwrap_issue_762
()
tests/unit/test_isort.py:3858
← previousnext →601–700 of 739, ranked by callers