Skip to content

Commit

Permalink
test(cz_customize): use 'cz_customize' configurations in its tests
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian DC <[email protected]>
  • Loading branch information
AdrianDC committed Dec 13, 2024
1 parent c5a37be commit 8e80df2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/test_cz_customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
from commitizen.exceptions import MissingCzCustomizeConfigError

TOML_STR = r"""
[tool.commitizen]
name = "cz_customize"
version = "1.0.0"
version_files = [
"commitizen/__version__.py",
"pyproject.toml"
]
[tool.commitizen.customize]
message_template = "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
example = "feature: this feature enables customization through a config file"
Expand Down Expand Up @@ -42,7 +50,7 @@
JSON_STR = r"""
{
"commitizen": {
"name": "cz_jira",
"name": "cz_customize",
"version": "1.0.0",
"version_files": [
"commitizen/__version__.py",
Expand Down Expand Up @@ -99,7 +107,7 @@

YAML_STR = """
commitizen:
name: cz_jira
name: cz_customize
version: 1.0.0
version_files:
- commitizen/__version__.py
Expand Down

0 comments on commit 8e80df2

Please sign in to comment.