1212
1313from commitizen import __file__ as commitizen_init
1414from commitizen import cli , git
15- from commitizen .changelog_formats import ChangelogFormat
15+ from commitizen .changelog_formats import BaseFormat
1616from commitizen .commands .changelog import Changelog
1717from commitizen .config .base_config import BaseConfig
1818from commitizen .cz .base import BaseCommitizen
@@ -77,7 +77,7 @@ def test_changelog_with_different_cz(mocker: MockFixture, capsys, file_regressio
7777
7878@pytest .mark .usefixtures ("tmp_commitizen_project" )
7979def test_changelog_from_start (
80- mocker : MockFixture , capsys , changelog_format : ChangelogFormat , file_regression
80+ mocker : MockFixture , capsys , changelog_format : BaseFormat , file_regression
8181):
8282 create_file_and_commit ("feat: new file" )
8383 create_file_and_commit ("refactor: is in changelog" )
@@ -103,7 +103,7 @@ def test_changelog_from_start(
103103
104104@pytest .mark .usefixtures ("tmp_commitizen_project" )
105105def test_changelog_replacing_unreleased_using_incremental (
106- mocker : MockFixture , capsys , changelog_format : ChangelogFormat , file_regression
106+ mocker : MockFixture , capsys , changelog_format : BaseFormat , file_regression
107107):
108108 create_file_and_commit ("feat: add new output" )
109109 create_file_and_commit ("fix: output glitch" )
@@ -1484,7 +1484,7 @@ def test_changelog_from_current_version_tag_with_nonversion_tag(
14841484def test_changelog_template_option_precedence (
14851485 mocker : MockFixture ,
14861486 tmp_commitizen_project : Path ,
1487- any_changelog_format : ChangelogFormat ,
1487+ any_changelog_format : BaseFormat ,
14881488 arg : str ,
14891489 cfg : str ,
14901490 expected : str ,
@@ -1527,7 +1527,7 @@ def test_changelog_template_extras_precedence(
15271527 mocker : MockFixture ,
15281528 tmp_commitizen_project : Path ,
15291529 mock_plugin : BaseCommitizen ,
1530- any_changelog_format : ChangelogFormat ,
1530+ any_changelog_format : BaseFormat ,
15311531):
15321532 project_root = Path (tmp_commitizen_project )
15331533 changelog_tpl = project_root / any_changelog_format .template
@@ -1800,7 +1800,7 @@ def test_changelog_ignored_tags(
18001800def test_changelog_template_extra_quotes (
18011801 mocker : MockFixture ,
18021802 tmp_commitizen_project : Path ,
1803- any_changelog_format : ChangelogFormat ,
1803+ any_changelog_format : BaseFormat ,
18041804):
18051805 project_root = Path (tmp_commitizen_project )
18061806 changelog_tpl = project_root / any_changelog_format .template
@@ -1836,7 +1836,7 @@ def test_changelog_template_extra_quotes(
18361836def test_changelog_template_extra_weird_but_valid (
18371837 mocker : MockFixture ,
18381838 tmp_commitizen_project : Path ,
1839- any_changelog_format : ChangelogFormat ,
1839+ any_changelog_format : BaseFormat ,
18401840 extra : str ,
18411841 expected ,
18421842):
@@ -1858,7 +1858,7 @@ def test_changelog_template_extra_weird_but_valid(
18581858def test_changelog_template_extra_bad_format (
18591859 mocker : MockFixture ,
18601860 tmp_commitizen_project : Path ,
1861- any_changelog_format : ChangelogFormat ,
1861+ any_changelog_format : BaseFormat ,
18621862 extra : str ,
18631863):
18641864 project_root = Path (tmp_commitizen_project )
@@ -1876,7 +1876,7 @@ def test_changelog_template_extra_bad_format(
18761876def test_export_changelog_template_from_default (
18771877 mocker : MockFixture ,
18781878 tmp_commitizen_project : Path ,
1879- any_changelog_format : ChangelogFormat ,
1879+ any_changelog_format : BaseFormat ,
18801880):
18811881 project_root = Path (tmp_commitizen_project )
18821882 target = project_root / "changelog.jinja"
@@ -1895,7 +1895,7 @@ def test_export_changelog_template_from_plugin(
18951895 mocker : MockFixture ,
18961896 tmp_commitizen_project : Path ,
18971897 mock_plugin : BaseCommitizen ,
1898- changelog_format : ChangelogFormat ,
1898+ changelog_format : BaseFormat ,
18991899 tmp_path : Path ,
19001900):
19011901 project_root = Path (tmp_commitizen_project )
0 commit comments