Skip to content

Commit 3c9c89c

Browse files
committed
test: fix test_changelog_incremental_with_merge_prerelease issue with freeze_time
#703
1 parent 36de6ee commit 3c9c89c

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

tests/commands/test_bump_command.py

-1
Original file line numberDiff line numberDiff line change
@@ -980,4 +980,3 @@ def test_bump_use_version_provider(mocker: MockFixture):
980980
get_provider.assert_called_once()
981981
mock.get_version.assert_called_once()
982982
mock.set_version.assert_called_once_with("0.0.1")
983-

tests/commands/test_changelog_command.py

+1
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ def test_changelog_release_candidate_version_with_merge_prerelease(
696696

697697
@pytest.mark.parametrize("test_input", ["rc", "alpha", "beta"])
698698
@pytest.mark.usefixtures("tmp_commitizen_project")
699+
@pytest.mark.freeze_time("2023-04-16")
699700
def test_changelog_incremental_with_merge_prerelease(
700701
mocker: MockFixture, changelog_path, file_regression, test_input
701702
):

tests/conftest.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import os
22
import re
33
import tempfile
4-
5-
from typing import Optional
64
from pathlib import Path
5+
from typing import Optional
76

87
import pytest
98

0 commit comments

Comments
 (0)