From 00f81d3bc4fc53982898af7bac9e176b648cce18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fraire=20Willemo=C3=ABs=2C=20Santiago?= Date: Mon, 21 Jun 2021 19:15:06 +0200 Subject: [PATCH] fix: add support for jinja2 v3 Closes #391 --- pyproject.toml | 3 ++- tests/commands/test_changelog_command.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7f7e6d372..fdfa833ee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,7 +51,7 @@ colorama = "^0.4.1" termcolor = "^1.1" packaging = ">=19,<21" tomlkit = ">=0.5.3,<1.0.0" -jinja2 = "^2.10.3" +jinja2 = ">=2.10.3" pyyaml = ">=3.08" argcomplete = "^1.12.1" @@ -71,6 +71,7 @@ freezegun = "^0.3.15" pydocstyle = "^5.0.2" pre-commit = "^2.6.0" pytest-regressions = "^2.2.0" +pytest-freezegun = "^0.4.2" [tool.poetry.scripts] cz = "commitizen.cli:main" diff --git a/tests/commands/test_changelog_command.py b/tests/commands/test_changelog_command.py index 34ef90a30..02e0e7464 100644 --- a/tests/commands/test_changelog_command.py +++ b/tests/commands/test_changelog_command.py @@ -484,6 +484,7 @@ def test_changelog_incremental_keep_a_changelog_sample_with_annotated_tag( @pytest.mark.parametrize("test_input", ["rc", "alpha", "beta"]) @pytest.mark.usefixtures("tmp_commitizen_project") +@pytest.mark.freeze_time("2021-06-11") def test_changelog_incremental_with_release_candidate_version( mocker, capsys, changelog_path, file_regression, test_input ):