MCPcopy Create free account

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

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

Functiontest_changelog_uses_version_tags_for_header
Tests that changelog headers always use version tags even if there are non-version tags This tests a scenario fixed in this commit: The first
tests/commands/test_changelog_command.py:1215
Functiontest_changelog_with_customized_change_type_order
( config_path: Path, changelog_path: Path, file_regression: FileRegressionFixture, util: UtilF
tests/commands/test_changelog_command.py:1131
Functiontest_changelog_with_different_cz
( capsys: pytest.CaptureFixture, file_regression: FileRegressionFixture, util: UtilFixture, )
tests/commands/test_changelog_command.py:77
Functiontest_changelog_with_filename_as_empty_string
(config_path: Path, util: UtilFixture)
tests/commands/test_changelog_command.py:819
Functiontest_changelog_with_non_linear_merges_commit_order
Test that commits merged non-linearly are correctly ordered in the changelog A typical scenario is having two branches from main like so: * f
tests/commands/test_changelog_command.py:374
Functiontest_changelog_without_revision
(tmp_commitizen_project, util: UtilFixture)
tests/commands/test_changelog_command.py:480
Functiontest_check_a_range_of_failed_git_commits
(config, mocker: MockFixture)
tests/commands/test_check_command.py:302
Functiontest_check_a_range_of_git_commits
( config, success_mock: MockType, mocker: MockFixture )
tests/commands/test_check_command.py:168
Functiontest_check_a_range_of_git_commits_and_failed
(config, mocker: MockFixture)
tests/commands/test_check_command.py:179
Functiontest_check_command_cli_overrides_config_message_length_limit
( config, success_mock: MockType )
tests/commands/test_check_command.py:481
Functiontest_check_command_override_allow_abort_config
(config)
tests/commands/test_check_command.py:344
Functiontest_check_command_override_allowed_prefixes_config
(config)
tests/commands/test_check_command.py:364
Functiontest_check_command_when_commit_file_not_found
(config)
tests/commands/test_check_command.py:163
Functiontest_check_command_with_allow_abort_arg
(config, success_mock)
tests/commands/test_check_command.py:333
Functiontest_check_command_with_allow_abort_config
(config, success_mock)
tests/commands/test_check_command.py:338
Functiontest_check_command_with_allowed_prefixes_arg
(config, success_mock)
tests/commands/test_check_command.py:350
Functiontest_check_command_with_allowed_prefixes_config
(config, success_mock)
tests/commands/test_check_command.py:358
Functiontest_check_command_with_amend_prefix_default
(config, success_mock)
tests/commands/test_check_command.py:456
Functiontest_check_command_with_comment_in_message_file
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:392
Functiontest_check_command_with_config_message_length_limit
(config, success_mock)
tests/commands/test_check_command.py:461
Functiontest_check_command_with_config_message_length_limit_exceeded
(config)
tests/commands/test_check_command.py:471
Functiontest_check_command_with_custom_validator_failed
( mocker: MockFixture, util: UtilFixture )
tests/commands/test_check_command.py:543
Functiontest_check_command_with_custom_validator_succeed
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:528
Functiontest_check_command_with_empty_range
(config: BaseConfig, util: UtilFixture)
tests/commands/test_check_command.py:250
Functiontest_check_command_with_invalid_argument
(config)
tests/commands/test_check_command.py:238
Functiontest_check_command_with_invalid_message
(config, message)
tests/commands/test_check_command.py:328
Functiontest_check_command_with_message_length_limit
(config, success_mock)
tests/commands/test_check_command.py:438
Functiontest_check_command_with_message_length_limit_exceeded
(config)
tests/commands/test_check_command.py:447
Functiontest_check_command_with_pipe_message
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:373
Functiontest_check_command_with_pipe_message_and_failed
( mocker: MockFixture, util: UtilFixture )
tests/commands/test_check_command.py:383
Functiontest_check_command_with_valid_message
(config, success_mock: MockType)
tests/commands/test_check_command.py:320
Functiontest_check_commit_msg_file_uses_commit_encoding
`--commit-msg-file` reads the file with `commit_encoding`.
tests/commands/test_check_command.py:147
Functiontest_check_conventional_commit
( commit_msg, config, success_mock: MockType, tmp_path )
tests/commands/test_check_command.py:138
Functiontest_check_conventional_commit_succeed_with_git_diff
( mocker, capsys, util: UtilFixture )
tests/commands/test_check_command.py:410
Functiontest_check_conventional_commit_succeeds
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:99
Functiontest_check_jira_command_after_issue
( mocker: MockFixture, capsys, util: UtilFixture, commit_msg: str )
tests/commands/test_check_command.py:89
Functiontest_check_jira_fails
(mocker: MockFixture, util: UtilFixture)
tests/commands/test_check_command.py:71
Functiontest_check_no_conventional_commit
(commit_msg, config, tmp_path)
tests/commands/test_check_command.py:121
Functiontest_check_rev_range_expands_env_vars
The ``commitizen-branch`` pre-push hook passes the literal string ``$PRE_COMMIT_FROM_REF..$PRE_COMMIT_TO_REF`` and relies on env-var expansion
tests/commands/test_check_command.py:191
Functiontest_check_rev_range_leaves_unset_env_vars_literal
Unset env-var references should pass through unchanged so git can surface a clear ``ambiguous argument`` error instead of being silently rewri
tests/commands/test_check_command.py:215
Functiontest_check_rev_range_pre_commit_branch_hook_regression
End-to-end regression test for the packaged ``commitizen-branch`` pre-push hook. The hook in ``.pre-commit-hooks.yaml`` runs:: cz ch
tests/commands/test_check_command.py:260
Functiontest_choices_all_have_keyboard_shortcuts
(config)
tests/test_cz_conventional_commits.py:50
Functiontest_command_shows_description_when_use_help_option
Test that the command shows the description when the help option is used. Note: If the command description changes, please run `poe test:regen` t
tests/commands/test_common_command.py:24
Functiontest_commit
(config, success_mock: MockType)
tests/commands/test_commit_command.py:62
Functiontest_commit_backup_on_failure
( config, mocker: MockFixture, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:68
Functiontest_commit_backup_uses_commit_encoding
A failed commit writes the backup file with `commit_encoding`.
tests/commands/test_commit_command.py:87
Functiontest_commit_cli_extra_args_parsing
Test that extra args after -- are passed as a list through the CLI.
tests/commands/test_commit_command.py:343
Functiontest_commit_command_body_length_limit
Parameterized test for body_length_limit feature with file regression.
tests/commands/test_commit_command.py:508
Functiontest_commit_command_body_length_limit_preserves_whitespace_only_lines
A whitespace-only body line must be kept, not just an empty one. ``textwrap.wrap`` returns ``[]`` for a whitespace-only string just like it d
tests/commands/test_commit_command.py:579
Functiontest_commit_command_uses_configured_body_length_limit_when_cli_option_is_omitted
( config, commit_mock, mocker: MockFixture, )
tests/commands/test_commit_command.py:550
Functiontest_commit_command_with_all_option
( config, success_mock: MockType, mocker: MockFixture )
tests/commands/test_commit_command.py:322
Functiontest_commit_command_with_always_signoff_enabled
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:241
Functiontest_commit_command_with_config_message_length_limit
( config, success_mock: MockType, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:445
Functiontest_commit_command_with_dry_run_option
(config)
tests/commands/test_commit_command.py:192
Functiontest_commit_command_with_extra_args
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:332
Functiontest_commit_command_with_gpgsign_and_always_signoff_enabled
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:252
Functiontest_commit_command_with_invalid_write_message_to_file_option
(config, tmp_path)
tests/commands/test_commit_command.py:225
Functiontest_commit_command_with_signoff_option
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:231
Functiontest_commit_command_with_write_message_to_file_option
( config, tmp_path, success_mock: MockType )
tests/commands/test_commit_command.py:198
Functiontest_commit_command_with_write_message_to_file_uses_commit_encoding
`--write-message-to-file` writes the message with `commit_encoding`.
tests/commands/test_commit_command.py:209
Functiontest_commit_in_non_git_project
(tmp_path, monkeypatch, config)
tests/commands/test_commit_command.py:315
Functiontest_commit_parser
(config)
tests/test_cz_customize.py:663
Functiontest_commit_parser_unicode
(config_with_unicode)
tests/test_cz_customize.py:668
Functiontest_commit_retry_after_failure_no_backup
( config, success_mock: MockType, commit_mock: MockType, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:148
Functiontest_commit_retry_after_failure_with_no_retry_works
( config, success_mock: MockType, commit_mock: MockType, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:177
Functiontest_commit_retry_after_failure_works
( config, success_mock: MockType, mocker: MockFixture, commit_mock: MockType )
tests/commands/test_commit_command.py:160
Functiontest_commit_retry_fails_no_backup
(config)
tests/commands/test_commit_command.py:124
Functiontest_commit_retry_reads_backup_with_commit_encoding
`cz commit --retry` reads the backup file with `commit_encoding`.
tests/commands/test_commit_command.py:109
Functiontest_commit_retry_works
( config, success_mock: MockType, mocker: MockFixture, commit_mock: MockType )
tests/commands/test_commit_command.py:132
Functiontest_commit_uses_list_args_and_env
Test that git.commit uses list-based subprocess (no shell injection).
tests/test_git.py:477
Functiontest_commit_when_customized_expected_raised
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:293
Functiontest_commit_when_no_user_answer
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:309
Functiontest_commit_when_non_customized_expected_raised
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:302
Functiontest_commit_when_nothing_added_to_commit
(config, mocker: MockFixture, out)
tests/commands/test_commit_command.py:425
Functiontest_commit_when_nothing_to_commit
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:263
Functiontest_commit_with_allow_empty
(config, success_mock: MockType, commit_mock: MockType)
tests/commands/test_commit_command.py:271
Functiontest_commit_with_signoff_and_allow_empty
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:280
Functiontest_commit_with_spaces_in_path
( mocker: MockFixture, file_path: str, expected_cmd: list[str], util: UtilFixture )
tests/test_git.py:371
Functiontest_commitizen_debug_excepthook
()
tests/test_cli.py:117
Functiontest_commitizen_excepthook
()
tests/test_cli.py:109
Functiontest_commitizen_excepthook_no_raises
()
tests/test_cli.py:145
Functiontest_commitizen_excepthook_non_commitizen_exception
Test that commitizen_excepthook delegates to sys.__excepthook__ for non-CommitizenException.
tests/test_cli.py:200
Functiontest_commitizen_excepthook_non_commitizen_exception_with_invalid_traceback
Test that commitizen_excepthook handles invalid traceback correctly for non-CommitizenException.
tests/test_cli.py:237
Functiontest_commitizen_excepthook_non_commitizen_exception_with_traceback
Test that commitizen_excepthook handles traceback correctly for non-CommitizenException.
tests/test_cli.py:216
Functiontest_commitizen_provider
(config: BaseConfig, mocker: MockerFixture)
tests/providers/test_commitizen_provider.py:13
Functiontest_composer_provider
( config: BaseConfig, chdir: Path, content: str, expected: str, )
tests/providers/test_composer_provider.py:35
Methodtest_conf_returns_default_when_no_files
(self, tmp_path, monkeypatch)
tests/test_conf.py:203
Methodtest_confirm_v_tag_format
(self, mocker: MockFixture, config: BaseConfig)
tests/commands/test_init_command.py:389
Functiontest_construct_name_choice_from_registry
Test the construction of cz name choices with descriptions.
tests/commands/test_init_command.py:614
Functiontest_create_tag
(test_input, expected)
tests/test_bump_normalize_tag.py:19
Functiontest_create_tag
(test_input, expected)
tests/test_bump_create_commit_message.py:21
Functiontest_create_tag_with_message
(util: UtilFixture)
tests/test_git.py:340
Functiontest_cz_config_file_without_correct_file_path
(util: UtilFixture)
tests/test_cli.py:69
Methodtest_cz_hook_exists_in_pre_commit_config
( self, default_choice: str, tmp_path, monkeypatch, config: BaseConfig )
tests/commands/test_init_command.py:217
Functiontest_cz_with_arg_but_without_command
(util: UtilFixture)
tests/test_cli.py:74
Functiontest_default_commit_filters_keep_all_commits
Default filtering hooks preserve the original commit list.
tests/test_factory.py:32
Functiontest_default_version_provider_is_commitizen_config
(config: BaseConfig)
tests/providers/test_base_provider.py:25
Functiontest_default_version_scheme_is_pep440
(config: BaseConfig)
tests/test_version_schemes.py:17
Functiontest_discover_external_plugin
(mocker)
tests/test_factory.py:95
Functiontest_discover_internal_plugins
()
tests/test_factory.py:113
← previousnext →601–700 of 1,032, ranked by callers