MCPcopy Create free account

hub / github.com/PyCQA/isort / functions

Functions820 in github.com/PyCQA/isort

Functiontest_broken
(tmpdir)
tests/unit/test_isort.py:3823
Functiontest_builtin_modules
()
tests/unit/test_isort.py:5818
Functiontest_cdef_support
()
tests/unit/test_isort.py:4997
Functiontest_check_code_detects_lines_before_import_changes
check_code must return False when lines_before_imports requires adding or removing blank lines before the import section, even if the imports them
tests/unit/test_isort.py:1706
Functiontest_check_code_should_not_false_positive_with_float_to_top_and_add_imports
isort check_code should not report incorrectly sorted imports when float_to_top and add_imports are used together and the import is already presen
tests/unit/test_regressions.py:1959
Functiontest_check_file_no_changes
(capsys, tmpdir)
tests/unit/test_api.py:62
Functiontest_check_file_with_changes
(capsys, imperfect)
tests/unit/test_api.py:70
Functiontest_check_never_passes_with_indented_headings_issue_1301
Test to ensure that test can pass even when there are indented headings. See: https://github.com/pycqa/isort/issues/1301
tests/unit/test_regressions.py:288
Functiontest_check_newline_in_imports
Ensure tests works correctly when new lines are in imports.
tests/unit/test_isort.py:991
Functiontest_cimport_support
Test to ensure cimports (Cython style imports) work
tests/unit/test_isort.py:4639
Functiontest_cli_src_path_glob_pattern
(tmpdir, capsys, monkeypatch)
tests/unit/test_main.py:1380
Functiontest_code_intermixed
Defines what should happen when isort encounters imports intermixed with code. (it should pull them all to the top)
tests/unit/test_isort.py:83
Functiontest_code_snippet_three
()
tests/unit/profiles/test_google.py:319
Functiontest_colorama_not_available_handled_gracefully
(capsys)
tests/unit/test_format.py:105
Functiontest_colored_printer_diff
(capsys)
tests/unit/test_format.py:72
Functiontest_colored_printer_diff_output
(capsys)
tests/unit/test_format.py:92
Functiontest_colored_printer_error
(capsys)
tests/unit/test_format.py:63
Functiontest_colored_printer_success
(capsys)
tests/unit/test_format.py:54
Functiontest_combine_as_does_not_lose_comments_issue_1321
Test to ensure isort doesn't lose comments when --combine-as is used. See: https://github.com/pycqa/isort/issues/1321
tests/unit/test_regressions.py:513
Functiontest_combine_as_does_not_lose_comments_issue_1381
Test to ensure isort doesn't lose comments when --combine-as is used. See: https://github.com/pycqa/isort/issues/1381
tests/unit/test_regressions.py:541
Functiontest_combine_as_with_comments_and_vertical_hang_2316
Comments should still produce correct parentheses with multi_line_output=3. See: https://github.com/PyCQA/isort/issues/2316
tests/unit/test_ticketed_features.py:1200
Functiontest_combine_star_comments_above
()
tests/unit/test_isort.py:5332
Functiontest_combine_straight_imports
Tests to ensure that combine_straight_imports works correctly
tests/unit/test_isort.py:5386
Functiontest_combined_from_and_as_imports
Test to ensure it's possible to combine from and as imports.
tests/unit/test_isort.py:1784
Functiontest_command_line
(tmpdir, capfd, multiprocess: bool)
tests/unit/test_isort.py:3719
Functiontest_comment_at_top_of_file
Test to ensure isort correctly handles top of file comments
tests/unit/test_isort.py:2550
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:425
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:4614
Functiontest_comment_not_duplicated_across_from_imports_2282
isort should not copy a comment from one 'from X import' line to other lines. See: https://github.com/PyCQA/isort/issues/2282
tests/unit/test_ticketed_features.py:1250
Functiontest_comment_on_opening_line_of_aliased_import_does_not_move
Ensure isort doesn't move comments from the opening "from ... import (" line to the alias attribute line when using import aliases that wrap acros
tests/unit/test_regressions.py:1979
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:450
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:2599
Functiontest_comments_not_removed_issue_576
()
tests/unit/test_isort.py:3837
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:409
Functiontest_comments_top_of_file
Test to ensure comments at top of file are correctly handled. See issue #1091.
tests/unit/test_isort.py:5157
Functiontest_complex_examples
()
tests/unit/test_identify.py:203
Functiontest_config_root_interaction_with_resolve_all_configs
(tmpdir)
tests/unit/test_main.py:162
Functiontest_consistency
Ensures consistency of handling even when dealing with non ordered-by-type imports
tests/unit/test_isort.py:2411
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:3333
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:1995
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:1730
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:2208
Functiontest_custom_sections_exception_handling
Ensure that appropriate exception is raised for missing sections
tests/unit/test_isort.py:2270
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_dict_non_string_values_use_repr
()
tests/unit/test_literal.py:107
Functiontest_dict_sorts_by_value_with_double_quotes
()
tests/unit/test_literal.py:99
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:31
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:92
Functiontest_dunder_future_import
(actual_imports: str, expected_sort: str)
tests/unit/test_isort.py:5813
Methodtest_eager_imports_are_stored_in_regular_buckets
(self)
tests/unit/test_lazy_imports.py:19
Functiontest_editorconfig_without_sections
(tmpdir)
tests/unit/test_settings.py:188
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:1060
Functiontest_encoding_not_in_comment
Test that 'encoding' not in a comment is ignored
tests/unit/test_isort.py:2524
Functiontest_encoding_not_in_first_two_lines
Test that 'encoding' not in the first two lines is ignored
tests/unit/test_isort.py:2537
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:3422
Functiontest_ensure_async_methods_work_issue_537
Test to ensure async methods are correctly identified
tests/unit/test_isort.py:3410
Functiontest_ensure_line_endings_are_preserved_issue_493
Test to ensure line endings are not converted
tests/unit/test_isort.py:3434
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:210
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:246
Functiontest_ensure_support_for_non_typed_but_cased_alphabetic_sort_issue_890
()
tests/unit/test_isort.py:4189
Functiontest_enum_matches_order_of_definitions
Before isort 9.0.0 WrapModes was dynamically generated, this tests for breaking changes.
tests/unit/test_wrap_modes.py:603
Functiontest_escaped_no_parens_sort_with_first_comment
()
tests/unit/test_isort.py:3571
Functiontest_escaped_parens_sort
()
tests/unit/test_isort.py:3553
Functiontest_escaped_parens_sort_with_comment
()
tests/unit/test_isort.py:3559
Functiontest_escaped_parens_sort_with_first_comment
()
tests/unit/test_isort.py:3565
Functiontest_exists_case_sensitive_directory
Test exists_case_sensitive function for a directory.
tests/unit/test_isort.py:3016
Functiontest_exists_case_sensitive_file
Test exists_case_sensitive function for a file.
tests/unit/test_isort.py:3008
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:103
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:4180
Functiontest_failing_file_check_916
()
tests/unit/test_isort.py:4317
Functiontest_fcntl
Test to ensure fcntl gets correctly recognized as stdlib import
tests/unit/test_isort.py:2477
Functiontest_file_contents
()
tests/unit/test_parse.py:27
Functiontest_file_contents_empty
()
tests/unit/test_parse.py:51
Functiontest_file_contents_splits_only_on_newlines
(line_separator)
tests/unit/test_parse.py:58
Functiontest_find
(tmpdir)
tests/unit/test_files.py:5
Functiontest_find_all_configs
(tmpdir)
tests/unit/test_settings.py:234
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:5404
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:5447
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
← previousnext →301–400 of 820, ranked by callers