Skip to content

Commit a7dccee

Browse files
committed
test(cz_customize): use 'cz_customize' configurations in its tests
Details: The JSON and YAML test configurations declared 'cz_jira' and the TOML one had no '[tool.commitizen]' section, so they did not represent real 'cz_customize' configurations; add the missing section and use 'name = "cz_customize"' everywhere --- Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 304378b commit a7dccee

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎tests/test_cz_customize.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
from commitizen.exceptions import MissingCzCustomizeConfigError
1212

1313
TOML_STR = r"""
14+
[tool.commitizen]
15+
name = "cz_customize"
16+
version = "1.0.0"
17+
version_files = [
18+
"commitizen/__version__.py",
19+
"pyproject.toml"
20+
]
21+
1422
[tool.commitizen.customize]
1523
message_template = "{{change_type}}:{% if show_message %} {{message}}{% endif %}"
1624
example = "feature: this feature enables customization through a config file"
@@ -48,7 +56,7 @@
4856
JSON_STR = r"""
4957
{
5058
"commitizen": {
51-
"name": "cz_jira",
59+
"name": "cz_customize",
5260
"version": "1.0.0",
5361
"version_files": [
5462
"commitizen/__version__.py",
@@ -105,7 +113,7 @@
105113

106114
YAML_STR = """
107115
commitizen:
108-
name: cz_jira
116+
name: cz_customize
109117
version: 1.0.0
110118
version_files:
111119
- commitizen/__version__.py

0 commit comments

Comments
 (0)