Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/commitizen-tools/commitizen
/ functions
Functions
1,032 in github.com/commitizen-tools/commitizen
⨍
Functions
1,032
◇
Types & classes
134
↳
Endpoints
30
Function
test_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
Function
test_changelog_with_customized_change_type_order
( config_path: Path, changelog_path: Path, file_regression: FileRegressionFixture, util: UtilF
tests/commands/test_changelog_command.py:1131
Function
test_changelog_with_different_cz
( capsys: pytest.CaptureFixture, file_regression: FileRegressionFixture, util: UtilFixture, )
tests/commands/test_changelog_command.py:77
Function
test_changelog_with_filename_as_empty_string
(config_path: Path, util: UtilFixture)
tests/commands/test_changelog_command.py:819
Function
test_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
Function
test_changelog_without_revision
(tmp_commitizen_project, util: UtilFixture)
tests/commands/test_changelog_command.py:480
Function
test_check_a_range_of_failed_git_commits
(config, mocker: MockFixture)
tests/commands/test_check_command.py:302
Function
test_check_a_range_of_git_commits
( config, success_mock: MockType, mocker: MockFixture )
tests/commands/test_check_command.py:168
Function
test_check_a_range_of_git_commits_and_failed
(config, mocker: MockFixture)
tests/commands/test_check_command.py:179
Function
test_check_command_cli_overrides_config_message_length_limit
( config, success_mock: MockType )
tests/commands/test_check_command.py:481
Function
test_check_command_override_allow_abort_config
(config)
tests/commands/test_check_command.py:344
Function
test_check_command_override_allowed_prefixes_config
(config)
tests/commands/test_check_command.py:364
Function
test_check_command_when_commit_file_not_found
(config)
tests/commands/test_check_command.py:163
Function
test_check_command_with_allow_abort_arg
(config, success_mock)
tests/commands/test_check_command.py:333
Function
test_check_command_with_allow_abort_config
(config, success_mock)
tests/commands/test_check_command.py:338
Function
test_check_command_with_allowed_prefixes_arg
(config, success_mock)
tests/commands/test_check_command.py:350
Function
test_check_command_with_allowed_prefixes_config
(config, success_mock)
tests/commands/test_check_command.py:358
Function
test_check_command_with_amend_prefix_default
(config, success_mock)
tests/commands/test_check_command.py:456
Function
test_check_command_with_comment_in_message_file
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:392
Function
test_check_command_with_config_message_length_limit
(config, success_mock)
tests/commands/test_check_command.py:461
Function
test_check_command_with_config_message_length_limit_exceeded
(config)
tests/commands/test_check_command.py:471
Function
test_check_command_with_custom_validator_failed
( mocker: MockFixture, util: UtilFixture )
tests/commands/test_check_command.py:543
Function
test_check_command_with_custom_validator_succeed
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:528
Function
test_check_command_with_empty_range
(config: BaseConfig, util: UtilFixture)
tests/commands/test_check_command.py:250
Function
test_check_command_with_invalid_argument
(config)
tests/commands/test_check_command.py:238
Function
test_check_command_with_invalid_message
(config, message)
tests/commands/test_check_command.py:328
Function
test_check_command_with_message_length_limit
(config, success_mock)
tests/commands/test_check_command.py:438
Function
test_check_command_with_message_length_limit_exceeded
(config)
tests/commands/test_check_command.py:447
Function
test_check_command_with_pipe_message
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:373
Function
test_check_command_with_pipe_message_and_failed
( mocker: MockFixture, util: UtilFixture )
tests/commands/test_check_command.py:383
Function
test_check_command_with_valid_message
(config, success_mock: MockType)
tests/commands/test_check_command.py:320
Function
test_check_commit_msg_file_uses_commit_encoding
`--commit-msg-file` reads the file with `commit_encoding`.
tests/commands/test_check_command.py:147
Function
test_check_conventional_commit
( commit_msg, config, success_mock: MockType, tmp_path )
tests/commands/test_check_command.py:138
Function
test_check_conventional_commit_succeed_with_git_diff
( mocker, capsys, util: UtilFixture )
tests/commands/test_check_command.py:410
Function
test_check_conventional_commit_succeeds
( mocker: MockFixture, capsys, util: UtilFixture )
tests/commands/test_check_command.py:99
Function
test_check_jira_command_after_issue
( mocker: MockFixture, capsys, util: UtilFixture, commit_msg: str )
tests/commands/test_check_command.py:89
Function
test_check_jira_fails
(mocker: MockFixture, util: UtilFixture)
tests/commands/test_check_command.py:71
Function
test_check_no_conventional_commit
(commit_msg, config, tmp_path)
tests/commands/test_check_command.py:121
Function
test_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
Function
test_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
Function
test_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
Function
test_choices_all_have_keyboard_shortcuts
(config)
tests/test_cz_conventional_commits.py:50
Function
test_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
Function
test_commit
(config, success_mock: MockType)
tests/commands/test_commit_command.py:62
Function
test_commit_backup_on_failure
( config, mocker: MockFixture, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:68
Function
test_commit_backup_uses_commit_encoding
A failed commit writes the backup file with `commit_encoding`.
tests/commands/test_commit_command.py:87
Function
test_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
Function
test_commit_command_body_length_limit
Parameterized test for body_length_limit feature with file regression.
tests/commands/test_commit_command.py:508
Function
test_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
Function
test_commit_command_uses_configured_body_length_limit_when_cli_option_is_omitted
( config, commit_mock, mocker: MockFixture, )
tests/commands/test_commit_command.py:550
Function
test_commit_command_with_all_option
( config, success_mock: MockType, mocker: MockFixture )
tests/commands/test_commit_command.py:322
Function
test_commit_command_with_always_signoff_enabled
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:241
Function
test_commit_command_with_config_message_length_limit
( config, success_mock: MockType, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:445
Function
test_commit_command_with_dry_run_option
(config)
tests/commands/test_commit_command.py:192
Function
test_commit_command_with_extra_args
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:332
Function
test_commit_command_with_gpgsign_and_always_signoff_enabled
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:252
Function
test_commit_command_with_invalid_write_message_to_file_option
(config, tmp_path)
tests/commands/test_commit_command.py:225
Function
test_commit_command_with_signoff_option
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:231
Function
test_commit_command_with_write_message_to_file_option
( config, tmp_path, success_mock: MockType )
tests/commands/test_commit_command.py:198
Function
test_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
Function
test_commit_in_non_git_project
(tmp_path, monkeypatch, config)
tests/commands/test_commit_command.py:315
Function
test_commit_parser
(config)
tests/test_cz_customize.py:663
Function
test_commit_parser_unicode
(config_with_unicode)
tests/test_cz_customize.py:668
Function
test_commit_retry_after_failure_no_backup
( config, success_mock: MockType, commit_mock: MockType, prompt_mock_feat: MockType )
tests/commands/test_commit_command.py:148
Function
test_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
Function
test_commit_retry_after_failure_works
( config, success_mock: MockType, mocker: MockFixture, commit_mock: MockType )
tests/commands/test_commit_command.py:160
Function
test_commit_retry_fails_no_backup
(config)
tests/commands/test_commit_command.py:124
Function
test_commit_retry_reads_backup_with_commit_encoding
`cz commit --retry` reads the backup file with `commit_encoding`.
tests/commands/test_commit_command.py:109
Function
test_commit_retry_works
( config, success_mock: MockType, mocker: MockFixture, commit_mock: MockType )
tests/commands/test_commit_command.py:132
Function
test_commit_uses_list_args_and_env
Test that git.commit uses list-based subprocess (no shell injection).
tests/test_git.py:477
Function
test_commit_when_customized_expected_raised
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:293
Function
test_commit_when_no_user_answer
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:309
Function
test_commit_when_non_customized_expected_raised
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:302
Function
test_commit_when_nothing_added_to_commit
(config, mocker: MockFixture, out)
tests/commands/test_commit_command.py:425
Function
test_commit_when_nothing_to_commit
(config, mocker: MockFixture)
tests/commands/test_commit_command.py:263
Function
test_commit_with_allow_empty
(config, success_mock: MockType, commit_mock: MockType)
tests/commands/test_commit_command.py:271
Function
test_commit_with_signoff_and_allow_empty
( config, success_mock: MockType, commit_mock: MockType )
tests/commands/test_commit_command.py:280
Function
test_commit_with_spaces_in_path
( mocker: MockFixture, file_path: str, expected_cmd: list[str], util: UtilFixture )
tests/test_git.py:371
Function
test_commitizen_debug_excepthook
()
tests/test_cli.py:117
Function
test_commitizen_excepthook
()
tests/test_cli.py:109
Function
test_commitizen_excepthook_no_raises
()
tests/test_cli.py:145
Function
test_commitizen_excepthook_non_commitizen_exception
Test that commitizen_excepthook delegates to sys.__excepthook__ for non-CommitizenException.
tests/test_cli.py:200
Function
test_commitizen_excepthook_non_commitizen_exception_with_invalid_traceback
Test that commitizen_excepthook handles invalid traceback correctly for non-CommitizenException.
tests/test_cli.py:237
Function
test_commitizen_excepthook_non_commitizen_exception_with_traceback
Test that commitizen_excepthook handles traceback correctly for non-CommitizenException.
tests/test_cli.py:216
Function
test_commitizen_provider
(config: BaseConfig, mocker: MockerFixture)
tests/providers/test_commitizen_provider.py:13
Function
test_composer_provider
( config: BaseConfig, chdir: Path, content: str, expected: str, )
tests/providers/test_composer_provider.py:35
Method
test_conf_returns_default_when_no_files
(self, tmp_path, monkeypatch)
tests/test_conf.py:203
Method
test_confirm_v_tag_format
(self, mocker: MockFixture, config: BaseConfig)
tests/commands/test_init_command.py:389
Function
test_construct_name_choice_from_registry
Test the construction of cz name choices with descriptions.
tests/commands/test_init_command.py:614
Function
test_create_tag
(test_input, expected)
tests/test_bump_normalize_tag.py:19
Function
test_create_tag
(test_input, expected)
tests/test_bump_create_commit_message.py:21
Function
test_create_tag_with_message
(util: UtilFixture)
tests/test_git.py:340
Function
test_cz_config_file_without_correct_file_path
(util: UtilFixture)
tests/test_cli.py:69
Method
test_cz_hook_exists_in_pre_commit_config
( self, default_choice: str, tmp_path, monkeypatch, config: BaseConfig )
tests/commands/test_init_command.py:217
Function
test_cz_with_arg_but_without_command
(util: UtilFixture)
tests/test_cli.py:74
Function
test_default_commit_filters_keep_all_commits
Default filtering hooks preserve the original commit list.
tests/test_factory.py:32
Function
test_default_version_provider_is_commitizen_config
(config: BaseConfig)
tests/providers/test_base_provider.py:25
Function
test_default_version_scheme_is_pep440
(config: BaseConfig)
tests/test_version_schemes.py:17
Function
test_discover_external_plugin
(mocker)
tests/test_factory.py:95
Function
test_discover_internal_plugins
()
tests/test_factory.py:113
← previous
next →
601–700 of 1,032, ranked by callers