Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 87a5c98

Browse files
committed
test: add test for 'additional' types in changelog
1 parent e37c0a9 commit 87a5c98

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

‎tests/commands/test_changelog_command.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,18 @@ def test_breaking_change_content_v1_multiline(
515515
file_regression.check(out, extension=".md")
516516

517517

518+
@pytest.mark.usefixtures("tmp_commitizen_project")
519+
def test_breaking_change_content_v1_with_exclamation_mark(mocker: MockFixture, capsys, file_regression):
520+
commit_message = "chore!: drop support for py36"
521+
create_file_and_commit(commit_message)
522+
testargs = ["cz", "changelog", "--dry-run"]
523+
mocker.patch.object(sys, "argv", testargs)
524+
with pytest.raises(DryRunExit):
525+
cli.main()
526+
out, _ = capsys.readouterr()
527+
528+
file_regression.check(out, extension=".md")
529+
518530
@pytest.mark.usefixtures("tmp_commitizen_project")
519531
def test_changelog_config_flag_increment(
520532
mocker: MockFixture, changelog_path, config_path, file_regression
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Unreleased
2+
3+
4+
- drop support for py36
5+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /