MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions739 in github.com/PyCQA/isort

Functiontest_combine_straight_imports
Tests to ensure that combine_straight_imports works correctly
tests/unit/test_isort.py:5374
Functiontest_combined_from_and_as_imports
Test to ensure it's possible to combine from and as imports.
tests/unit/test_isort.py:1760
Functiontest_command_line
(tmpdir, capfd, multiprocess: bool)
tests/unit/test_isort.py:3695
Functiontest_comment_at_top_of_file
Test to ensure isort correctly handles top of file comments
tests/unit/test_isort.py:2526
Functiontest_comment_blocks_should_stay_associated_without_extra_lines_issue_1156
Tests to ensure isort doesn't add an extra line when there are large import blocks or otherwise warp the intent. See: https://github.com/pycqa
tests/unit/test_regressions.py:414
Functiontest_comment_look_alike
Test to ensure isort will handle what looks like a single line comment at the end of a multi-line comment.
tests/unit/test_isort.py:4590
Functiontest_comment_shouldnt_be_duplicated_with_fass_enabled_issue_1329
Tests to ensure isort doesn't duplicate comments when imports occur with comment on top, immediately after large comment blocks. See: https://
tests/unit/test_regressions.py:439
Functiontest_comments_above
Test to ensure comments above an import will stay in place
tests/unit/test_isort.py:956
Functiontest_comments_not_duplicated
Test to ensure comments aren't duplicated: issue 303
tests/unit/test_isort.py:2575
Functiontest_comments_not_removed_issue_576
()
tests/unit/test_isort.py:3813
Functiontest_comments_should_cause_wrapping_on_long_lines_black_mode_issue_1219
Tests to ensure if isort encounters a single import line which is made too long with a comment it is wrapped when using black profile. See: ht
tests/unit/test_regressions.py:398
Functiontest_comments_should_never_be_moved_between_imports_issue_1427
isort should never move comments to different import statement. See: https://github.com/PyCQA/isort/issues/1427
tests/unit/test_regressions.py:642
Functiontest_comments_top_of_file
Test to ensure comments at top of file are correctly handled. See issue #1091.
tests/unit/test_isort.py:5133
Functiontest_complex_examples
()
tests/unit/test_identify.py:203
Functiontest_consistency
Ensures consistency of handling even when dealing with non ordered-by-type imports
tests/unit/test_isort.py:2387
Functiontest_convert_hanging
Ensure that isort will convert hanging indents to correct indent method.
tests/unit/test_isort.py:670
Functiontest_correct_number_of_new_lines_with_comment_issue_435
Test to ensure that injecting a comment in-between imports doesn't mess up the new line spacing
tests/unit/test_isort.py:3309
Functiontest_correct_space_between_imports
Ensure after imports a correct amount of space (in newlines) is enforced. (2 for method, class, or decorator definitions 1 for anything else)
tests/unit/test_isort.py:106
Functiontest_correctly_placed_imports
Test to ensure comments stay on correct placement after being sorted
tests/unit/test_isort.py:1971
Functiontest_custom_indent
Ensure setting a custom indent will work as expected.
tests/unit/test_isort.py:696
Functiontest_custom_lines_after_import_section
Test the case where the number of lines to output after imports has been explicitly set.
tests/unit/test_isort.py:1706
Functiontest_custom_lines_before_import_section
Test the case where the number of lines to output before imports has been explicitly set.
tests/unit/test_isort.py:1680
Functiontest_custom_sections
Ensure that most specific placement control match wins
tests/unit/test_isort.py:2184
Functiontest_custom_sections_exception_handling
Ensure that appropriate exception is raised for missing sections
tests/unit/test_isort.py:2246
Functiontest_cython_pure_python_imports_2062
Test to ensure an import form a cython.cimports remains import, not cimport. See: https://github.com/pycqa/isort/issues/2062.
tests/unit/test_ticketed_features.py:1061
Functiontest_default_section
Test to ensure changing the default section works as expected.
tests/unit/test_isort.py:1080
Methodtest_deprecated_multi_line_output
(self)
tests/unit/test_settings.py:105
Functiontest_deprecated_settings
Test to ensure isort warns when deprecated settings are used, but doesn't fail to run
tests/unit/test_isort.py:5322
Functiontest_deprecated_settings_no_warn_in_quiet_mode
Test to ensure isort does NOT warn in quiet mode even though settings are deprecated
tests/unit/test_isort.py:5328
Functiontest_diff_stream
()
tests/unit/test_api.py:81
Functiontest_dir
()
tests/unit/conftest.py:13
Functiontest_django
(tmpdir)
tests/integration/test_projects_using_isort.py:35
Functiontest_django_snippet_one
()
tests/unit/profiles/test_django.py:8
Functiontest_django_snippet_three
()
tests/unit/profiles/test_django.py:89
Functiontest_django_snippet_two
()
tests/unit/profiles/test_django.py:60
Functiontest_dobby
(tmpdir)
tests/integration/test_projects_using_isort.py:93
Functiontest_dunder_future_import
(actual_imports: str, expected_sort: str)
tests/unit/test_isort.py:5711
Functiontest_editorconfig_without_sections
(tmpdir)
tests/unit/test_settings.py:187
Functiontest_empty_float_to_top_shouldnt_error_issue_1453
isort shouldn't error when float to top is set with a mostly empty file
tests/unit/test_regressions.py:996
Functiontest_encoding_not_in_comment
Test that 'encoding' not in a comment is ignored
tests/unit/test_isort.py:2500
Functiontest_encoding_not_in_first_two_lines
Test that 'encoding' not in the first two lines is ignored
tests/unit/test_isort.py:2513
Functiontest_ensure_as_imports_sort_correctly_within_from_imports_issue_590
Test to ensure combination from and as import statements are sorted correct
tests/unit/test_isort.py:3398
Functiontest_ensure_async_methods_work_issue_537
Test to ensure async methods are correctly identified
tests/unit/test_isort.py:3386
Functiontest_ensure_line_endings_are_preserved_issue_493
Test to ensure line endings are not converted
tests/unit/test_isort.py:3410
Functiontest_ensure_new_line_before_comments_mixed_with_ensure_newline_before_comments_1295
Tests to ensure that the black profile can be used in conjunction with force_sort_within_sections. See: https://github.com/pycqa/isort/issues
tests/unit/test_regressions.py:197
Functiontest_ensure_sre_parse_is_identified_as_stdlib_issue_1304
Ensure sre_parse is identified as STDLIB. See: https://github.com/pycqa/isort/issues/1304.
tests/unit/test_regressions.py:233
Functiontest_ensure_support_for_non_typed_but_cased_alphabetic_sort_issue_890
()
tests/unit/test_isort.py:4165
Functiontest_escaped_no_parens_sort_with_first_comment
()
tests/unit/test_isort.py:3547
Functiontest_escaped_parens_sort
()
tests/unit/test_isort.py:3529
Functiontest_escaped_parens_sort_with_comment
()
tests/unit/test_isort.py:3535
Functiontest_escaped_parens_sort_with_first_comment
()
tests/unit/test_isort.py:3541
Functiontest_exists_case_sensitive_directory
Test exists_case_sensitive function for a directory.
tests/unit/test_isort.py:2992
Functiontest_exists_case_sensitive_file
Test exists_case_sensitive function for a file.
tests/unit/test_isort.py:2984
Functiontest_explicitly_local_import
Ensure that explicitly local imports are separated.
tests/unit/test_isort.py:962
Functiontest_extra_blank_line_added_nested_imports_issue_1290
Ensure isort doesn't add unnecessary blank lines above nested imports. See: https://github.com/pycqa/isort/issues/1290
tests/unit/test_regressions.py:101
Functiontest_extra_standard_library
(src_path)
tests/unit/test_place.py:18
Functiontest_extract_multiline_output_wrap_setting_from_a_config_file
(tmp_path: Path)
tests/unit/test_isort.py:4156
Functiontest_failing_file_check_916
()
tests/unit/test_isort.py:4293
Functiontest_fcntl
Test to ensure fcntl gets correctly recognized as stdlib import
tests/unit/test_isort.py:2453
Functiontest_file_contents
()
tests/unit/test_parse.py:27
Functiontest_find
(tmpdir)
tests/unit/test_files.py:5
Functiontest_find_all_configs
(tmpdir)
tests/unit/test_settings.py:232
Functiontest_find_config
(tmpdir)
tests/unit/test_settings.py:124
Functiontest_find_config_deep
(tmpdir)
tests/unit/test_settings.py:146
Functiontest_find_imports_in_code
()
tests/unit/test_isort.py:5392
Functiontest_find_imports_in_code
()
tests/unit/test_api.py:104
Functiontest_find_imports_in_file
(imperfect)
tests/unit/test_api.py:92
Functiontest_find_imports_in_file_error
(tmpdir)
tests/unit/test_api.py:97
Functiontest_find_imports_in_stream
Ensure that find_imports_in_stream can work with nonseekable streams like STDOUT
tests/unit/test_isort.py:5435
Functiontest_first_party_overrides_standard_section
Test to ensure changing the default section works as expected.
tests/unit/test_isort.py:1098
Functiontest_float_to_top_should_respect_existing_newlines_between_imports_issue_1502
When a file has an existing top of file import block before code but after comments isort's float to top feature should respect the existing spaci
tests/unit/test_ticketed_features.py:625
Functiontest_footered_imports
Tests setting both custom titles and footers to import sections.
tests/unit/test_isort.py:1322
Functiontest_force_grid_wrap
Ensures removing imports works as expected.
tests/unit/test_isort.py:2393
Functiontest_force_grid_wrap_long
Ensure that force grid wrap still happens with long line length
tests/unit/test_isort.py:2414
Functiontest_force_single_line_imports
Test to ensure forcing imports to each have their own line works as expected.
tests/unit/test_isort.py:1155
Functiontest_force_single_line_imports_and_sort_within_sections
()
tests/unit/test_isort.py:1214
Functiontest_force_single_line_long_imports
()
tests/unit/test_isort.py:1203
Functiontest_force_single_line_shouldnt_remove_preceding_comment_lines_issue_1296
Tests to ensure force_single_line setting doesn't result in lost comments. See: https://github.com/pycqa/isort/issues/1296
tests/unit/test_regressions.py:182
Functiontest_force_sort_within_sections_with_relative_imports
Test sorting of relative imports with force_sort_within_sections=True
tests/unit/test_isort.py:3241
Functiontest_force_sort_within_sections_with_reverse_relative_imports
Test reverse sorting of relative imports with force_sort_within_sections=True
tests/unit/test_isort.py:3257
Functiontest_force_to_top
Ensure forcing a single import to the top of its category works as expected.
tests/unit/test_isort.py:842
Functiontest_forced_separate
Ensure that forcing certain sub modules to show separately works as expected.
tests/unit/test_isort.py:1028
Functiontest_forced_separate_is_deterministic_issue_774
(tmpdir)
tests/unit/test_isort.py:3657
Functiontest_forced_sepatate_globs
Test to ensure that forced_separate glob matches lines
tests/unit/test_isort.py:2817
Methodtest_from_content
(self, tmpdir)
tests/unit/test_io.py:23
Functiontest_from_ending
Imports ending in "from" shouldn't be clobbered.
tests/unit/test_isort.py:2353
Functiontest_from_first
Tests the setting from_first works correctly
tests/unit/test_isort.py:2360
Functiontest_function_with_docstring
Test to ensure isort can correctly sort imports when the first found content is a function with a docstring
tests/unit/test_isort.py:2942
Functiontest_future_below_encoding_issue_545
Test to ensure future is always below comment
tests/unit/test_isort.py:3317
Functiontest_fuzz__infer_line_separator
(contents)
tests/unit/test_parse.py:56
Functiontest_fuzz__strip_syntax
(import_string)
tests/unit/test_parse.py:61
Functiontest_fuzz_add_to_line
(comments, original_string, removed, comment_prefix)
tests/unit/test_output.py:13
Functiontest_fuzz_add_to_line
(comments, original_string, removed, comment_prefix)
tests/unit/test_comments.py:23
Functiontest_fuzz_backslash_grid
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:145
Functiontest_fuzz_grid
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:186
Functiontest_fuzz_hanging_indent
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:227
Functiontest_fuzz_hanging_indent_with_parentheses
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:286
Functiontest_fuzz_import_type
(line, config)
tests/unit/test_parse.py:66
Functiontest_fuzz_noqa
( statement, imports, white_space, indent, line_length, comments, line_separator,
tests/unit/test_wrap_modes.py:327
Functiontest_fuzz_parse
(line)
tests/unit/test_comments.py:33
← previousnext →301–400 of 739, ranked by callers