Skip to content

Commit 0a52cf9

Browse files
committed
test(changelog): add test case for customized change_type_order
1 parent 74a6922 commit 0a52cf9

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

tests/commands/test_changelog_command.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def test_changelog_from_start(mocker, capsys, changelog_path, file_regression):
7878

7979

8080
@pytest.mark.usefixtures("tmp_commitizen_project")
81+
@pytest.mark.freeze_time("2022-03-30")
8182
def test_changelog_replacing_unreleased_using_incremental(
8283
mocker, capsys, changelog_path, file_regression
8384
):
@@ -108,6 +109,7 @@ def test_changelog_replacing_unreleased_using_incremental(
108109

109110

110111
@pytest.mark.usefixtures("tmp_commitizen_project")
112+
@pytest.mark.freeze_time("2022-03-30")
111113
def test_changelog_is_persisted_using_incremental(
112114
mocker, capsys, changelog_path, file_regression
113115
):
@@ -869,6 +871,7 @@ def test_invalid_subject_is_skipped(mocker, capsys):
869871

870872

871873
@pytest.mark.freeze_time("2022-02-13")
874+
@pytest.mark.usefixtures("tmp_commitizen_project")
872875
def test_changelog_with_customized_change_type_order(
873876
mocker, config_path, changelog_path, file_regression
874877
):

tests/commands/test_changelog_command/test_changelog_config_flag_increment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
note: this should be persisted using increment
3+
34
## Unreleased
45

56
### Feat

tests/commands/test_changelog_command/test_changelog_is_persisted_using_incremental.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
- mama gotta work
1010

11-
## 0.2.0 (2022-03-30)
11+
## 0.2.0 (2022-08-14)
1212

1313
### Feat
1414

tests/commands/test_changelog_command/test_changelog_replacing_unreleased_using_incremental.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
- mama gotta work
1010

11-
## 0.2.0 (2022-03-30)
11+
## 0.2.0 (2022-08-14)
1212

1313
### Feat
1414

0 commit comments

Comments
 (0)