MCPcopy Create free account

hub / github.com/commitizen-tools/commitizen / functions

Functions1,032 in github.com/commitizen-tools/commitizen

Functiontest_guess_format
(format: type[ChangelogFormat])
tests/test_changelog_formats.py:21
Functiontest_guess_format_unknown
(filename: str)
tests/test_changelog_formats.py:28
Functiontest_ignored_version_tag_is_not_version_tag
(capsys: pytest.CaptureFixture)
tests/test_changelog.py:1594
Functiontest_info
(config)
tests/test_cz_jira.py:34
Functiontest_info
(config)
tests/test_cz_customize.py:639
Functiontest_info
just testing a string is returned. not the content
tests/test_cz_conventional_commits.py:171
Functiontest_info_unicode
(config_with_unicode)
tests/test_cz_customize.py:644
Functiontest_info_with_info_path
(tmp_path, monkeypatch, config_info)
tests/test_cz_customize.py:649
Functiontest_info_without_info
(config_without_info)
tests/test_cz_customize.py:658
Functiontest_init_configuration_settings
Test that all configuration settings are properly initialized.
tests/commands/test_init_command.py:549
Functiontest_init_configuration_with_version_provider
Test configuration initialization with a different version provider.
tests/commands/test_init_command.py:580
Methodtest_init_empty_config_content
(self, tmp_path, config_file)
tests/test_conf.py:419
Methodtest_init_empty_config_content
(self, tmp_path, config_file)
tests/test_conf.py:460
Methodtest_init_empty_config_content
(self, tmp_path, config_file)
tests/test_conf.py:486
Methodtest_init_empty_config_content_with_existing_content
( self, tmp_path, config_file )
tests/test_conf.py:427
Functiontest_init_when_config_already_exists
(config: BaseConfig, capsys)
tests/commands/test_init_command.py:88
Functiontest_init_with_confirmed_tag_format
( config: BaseConfig, mocker: MockFixture, tmp_path, monkeypatch )
tests/commands/test_init_command.py:420
Functiontest_init_with_existing_tags
( config: BaseConfig, mocker: MockFixture, tmp_path, monkeypatch )
tests/commands/test_init_command.py:492
Methodtest_init_with_invalid_config_content
(self, tmp_path, config_file)
tests/test_conf.py:443
Methodtest_init_with_invalid_config_content
(self, tmp_path, config_file)
tests/test_conf.py:469
Methodtest_init_with_invalid_content
(self, tmp_path, config_file)
tests/test_conf.py:495
Functiontest_init_with_no_existing_latest_tag
( config: BaseConfig, mocker: MockFixture, tmp_path, monkeypatch )
tests/commands/test_init_command.py:470
Functiontest_init_with_no_existing_tags
( config: BaseConfig, mocker: MockFixture, tmp_path, monkeypatch )
tests/commands/test_init_command.py:447
Functiontest_init_with_valid_tag_selection
( config: BaseConfig, mocker: MockFixture, tmp_path, monkeypatch )
tests/commands/test_init_command.py:517
Functiontest_init_without_choosing_tag
( config: BaseConfig, mocker: MockFixture, tmp_path, monkeypatch )
tests/commands/test_init_command.py:98
Functiontest_init_without_setup_pre_commit_hook
( tmp_path, monkeypatch, mocker: MockFixture, config: BaseConfig )
tests/commands/test_init_command.py:63
Functiontest_initialize_cz_customize_failed
()
tests/test_cz_customize.py:379
Functiontest_invalid_bytes
()
tests/test_cmd.py:44
Functiontest_invalid_command
(util: UtilFixture, capsys, file_regression, arg)
tests/test_cli.py:59
Functiontest_invalid_subject_is_skipped
Fix #510
tests/commands/test_changelog_command.py:1110
Functiontest_invalid_tag_included_in_changelog
()
tests/test_changelog.py:603
Functiontest_is_initial_tag
Test the _is_initial_tag method behavior.
tests/commands/test_bump_command.py:1525
Functiontest_is_overlined_title
(text: str, expected: bool)
tests/test_changelog_format_restructuredtext.py:344
Functiontest_is_staging_clean_when_adding_file
()
tests/test_git.py:284
Functiontest_is_staging_clean_when_updating_file
()
tests/test_git.py:297
Functiontest_is_underlined_title
(text: str, expected: bool)
tests/test_changelog_format_restructuredtext.py:334
Functiontest_is_version_tag_accepts_dotless_devrelease_in_custom_tag_format
Regression test for #1614: ``${devrelease}`` accepts both ``dev1`` and ``.dev1`` suffixes when a custom ``tag_format`` splits release and dev
tests/test_tags.py:133
Functiontest_is_version_tag_accepts_semver2_prerelease_in_custom_tag_format
Regression test for #1614: a SemVer2-style prerelease segment such as ``rc.0`` (with a literal dot) must be recognised when it appears at the
tests/test_tags.py:106
Functiontest_json_provider_handles_various_unicode_characters
JsonProvider should handle a wide range of Unicode characters.
tests/providers/test_base_provider.py:81
Functiontest_json_provider_uses_encoding_with_encoding_fixture
JsonProvider should correctly read a JSON file with non-ASCII content.
tests/providers/test_base_provider.py:45
Methodtest_latest_version_position_at_unreleased_end
Test behavior when latest_version_position equals unreleased_end.
tests/test_incremental_build.py:529
Methodtest_latest_version_position_before_unreleased_start
Test behavior when latest_version_position is before unreleased_start.
tests/test_incremental_build.py:565
Methodtest_load_conf
(self, config_files_manager)
tests/test_conf.py:199
Methodtest_load_cz_json_not_from_config_argument
(self, tmp_path, monkeypatch)
tests/test_conf.py:227
Methodtest_load_cz_yaml_not_from_config_argument
(self, tmp_path, monkeypatch)
tests/test_conf.py:237
Methodtest_load_empty_json_from_config_argument
(self, tmpdir)
tests/test_conf.py:258
Methodtest_load_empty_pyproject_toml_and_cz_toml_with_config
( self, tmp_path, monkeypatch )
tests/test_conf.py:208
Methodtest_load_empty_pyproject_toml_from_config_argument
( self, tmp_path, monkeypatch )
tests/test_conf.py:247
Methodtest_load_empty_yaml_from_config_argument
(self, tmpdir)
tests/test_conf.py:266
Methodtest_load_pyproject_toml_from_config_argument
(self, tmp_path, monkeypatch)
tests/test_conf.py:218
Functiontest_long_answer
(config)
tests/test_cz_conventional_commits.py:73
Functiontest_ls
(util: UtilFixture, capsys)
tests/test_cli.py:92
Functiontest_manual_edit
(editor, config, mocker: MockFixture, tmp_path)
tests/commands/test_commit_command.py:352
Functiontest_manual_edit_keeps_non_ascii_message
The editor file uses `commit_encoding`, or `encoding` if it is not set. The locale encoding is not used. On Windows, it is a legacy code page
tests/commands/test_commit_command.py:385
Functiontest_message_template
Test that the message template is properly configured
tests/test_cz_search_filter.py:66
Methodtest_metadata_with_none_values
Test behavior when metadata has None values for unreleased positions.
tests/test_incremental_build.py:449
Functiontest_monorepo_get_version_tags_filters_sibling_components
``get_version_tags`` keeps only the component's own tags when the repository also contains sibling component tags, as configured in ``docs/tut
tests/test_tags.py:190
Functiontest_monorepo_ignored_tag_formats_keep_own_tags
Regression test for the monorepo workflow in ``docs/tutorials/monorepo_guidance.md``. Each component configures a suffixed ``tag_format`` and
tests/test_tags.py:147
Methodtest_multiline_new_content
Test behavior with multiline new content.
tests/test_incremental_build.py:414
Functiontest_multiple_line_breaker
()
tests/test_cz_utils.py:14
Functiontest_multiple_versions_to_bump
( multiple_versions_to_update_poetry_lock, file_regression )
tests/test_bump_update_version_in_files.py:220
Functiontest_name
(util: UtilFixture, capsys)
tests/test_cli.py:79
Functiontest_name_default_value
(util: UtilFixture, capsys)
tests/test_cli.py:86
Functiontest_next_version
( config, capsys, next_increment: str, current_version: str, expected_version: str )
tests/commands/test_version_command.py:225
Functiontest_next_version_invalid_version
(config, capsys)
tests/commands/test_version_command.py:252
Functiontest_no_argv
(util: UtilFixture, capsys, file_regression)
tests/test_cli.py:46
Methodtest_no_blank_line_when_content_ends_with_blank_line
Test that no extra blank line is added when content already ends with blank line.
tests/test_incremental_build.py:349
Methodtest_no_env_uses_os_environ
(self, monkeypatch)
tests/test_cmd.py:134
Methodtest_no_existing_pre_commit_config
( self, default_choice: str, tmp_path, monkeypatch, config: BaseConfig )
tests/commands/test_init_command.py:181
Methodtest_no_unreleased_section_append_to_end
Test appending new content when no unreleased section exists.
tests/test_incremental_build.py:162
Methodtest_no_unreleased_section_with_latest_version_position
Test inserting new content at latest_version_position when no unreleased section.
tests/test_incremental_build.py:197
Methodtest_no_warn_with_explicit_config_path
Test that no warning is issued when user explicitly specifies config.
tests/test_conf.py:346
Methodtest_no_warn_with_no_commitizen_section_in_pyproject_toml_and_cz_toml
( self, tmp_path, monkeypatch, capsys )
tests/test_conf.py:397
Methodtest_no_warn_with_single_config_file
Test that no warning is issued when user explicitly specifies config.
tests/test_conf.py:380
Methodtest_non_v_tag_format
(self, mocker: MockFixture, config: BaseConfig)
tests/commands/test_init_command.py:404
Functiontest_none_increment_exit_is_exception
()
tests/commands/test_bump_command.py:536
Functiontest_none_increment_exit_should_be_a_class
()
tests/commands/test_bump_command.py:524
Functiontest_none_increment_exit_should_be_expected_exit_subclass
()
tests/commands/test_bump_command.py:528
Functiontest_none_increment_exit_should_exist_in_bump
()
tests/commands/test_bump_command.py:532
Functiontest_none_increment_should_not_call_git_tag_and_error_code_is_not_zero
( mocker: MockFixture, util: UtilFixture, )
tests/commands/test_bump_command.py:541
Methodtest_nonzero_return_code_on_failure
(self)
tests/test_cmd.py:107
Methodtest_nonzero_return_code_on_failure
(self)
tests/test_cmd.py:155
Methodtest_nonzero_return_code_on_failure
(self)
tests/test_cmd.py:200
Functiontest_normalize_argparse_choice_quotes
()
tests/test_cli.py:33
Functiontest_npm_provider
( config: BaseConfig, chdir: Path, pkg_lock_content: str, pkg_lock_expected: str, pkg_shri
tests/providers/test_npm_provider.py:97
Functiontest_npm_provider_respects_configured_encoding_for_all_files
NpmProvider should use the configured encoding for all files it touches.
tests/providers/test_npm_provider.py:127
Functiontest_operation_commit_filters_delegate_to_shared_filter
Operation-specific hooks delegate to a shared custom filter.
tests/test_factory.py:42
Functiontest_parse_no_raise
(input_str, expected_result)
tests/test_cli.py:180
Functiontest_parse_scope_valid_values
(valid_scope)
tests/test_cz_conventional_commits.py:14
Functiontest_parse_subject_invalid_values
(invalid_subject)
tests/test_cz_conventional_commits.py:32
Functiontest_parse_subject_valid_values
(valid_subject)
tests/test_cz_conventional_commits.py:27
Functiontest_parse_title_type_of_line
( line_from_changelog: str, output_title: str, format: Textile )
tests/test_changelog_format_textile.py:144
Functiontest_parse_title_type_of_line
( line_from_changelog: str, output_title: str, format: AsciiDoc )
tests/test_changelog_format_asciidoc.py:151
Functiontest_parse_title_type_of_line
( line_from_changelog: str, output_title: str, format: Markdown )
tests/test_changelog_format_markdown.py:151
Functiontest_partial_update_of_file
(version_repeated_file, file_regression)
tests/test_bump_update_version_in_files.py:119
Functiontest_pep440_implement_version_protocol
()
tests/test_version_scheme_pep440.py:1321
Functiontest_pep440_scheme_property
()
tests/test_version_scheme_pep440.py:1316
Methodtest_pre_commit_config_without_cz_hook
( self, default_choice: str, tmp_path, monkeypatch, config: BaseConfig )
tests/commands/test_init_command.py:200
Functiontest_prevent_prerelease_when_no_increment_detected
( util: UtilFixture, capsys: pytest.CaptureFixture )
tests/commands/test_bump_command.py:581
Functiontest_questions
(config)
tests/test_cz_jira.py:4
← previousnext →801–900 of 1,032, ranked by callers