Skip to content

Navigation Menu

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

Appearance settings

poetry all tests fail #1409

Copy link
Copy link
Open
Open
Copy link
@bearomorphism

Description

@bearomorphism
Issue body actions

Description

pytest -n 8 --dist=loadfile tests/commands/test_*_command.py fails on master (617b610) on my machine.

============================================================================ test session starts ============================================================================
platform darwin -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
rootdir: /Users/bearomorphism/workspace/commitizen
configfile: pyproject.toml
plugins: pytest_freezer-0.4.9, datadir-1.5.0, cov-6.0.0, regressions-2.7.0, mock-3.14.0, xdist-3.6.1
8 workers [318 items]   
.............................F........................................................................F.......F...................................................... [ 51%]
.........................................................................................................F..............................................F             [100%]
================================================================================= FAILURES ==================================================================================
________________________________________________________ test_version_command_shows_description_when_use_help_option ________________________________________________________
[gw5] darwin -- Python 3.13.2 /Users/bearomorphism/Library/Caches/pypoetry/virtualenvs/commitizen-cUR-hlvL-py3.13/bin/python

mocker = <pytest_mock.plugin.MockerFixture object at 0x104e2bed0>, capsys = <_pytest.capture.CaptureFixture object at 0x104eaf8a0>
file_regression = <pytest_regressions.file_regression.FileRegressionFixture object at 0x104f06900>

    @skip_below_py_3_10
    def test_version_command_shows_description_when_use_help_option(
        mocker: MockerFixture, capsys, file_regression
    ):
        testargs = ["cz", "version", "--help"]
        mocker.patch.object(sys, "argv", testargs)
        with pytest.raises(SystemExit):
            cli.main()
    
        out, _ = capsys.readouterr()
>       file_regression.check(out, extension=".txt")
E       AssertionError: FILES DIFFER:
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw5/test_version_command_shows_des0/test_version_command/test_version_command_shows_description_when_use_help_option.txt
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw5/test_version_command_shows_des0/test_version_command/test_version_command_shows_description_when_use_help_option.obtained.txt
E       HTML DIFF: /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw5/test_version_command_shows_des0/test_version_command/test_version_command_shows_description_when_use_help_option.obtained.diff.html
E       --- 
E       +++ 
E       @@ -1,12 +1,10 @@
E        usage: cz version [-h] [-r | -p | -c | -v]
E        
E       -get the version of the installed commitizen or the current project (default:
E       -installed commitizen)
E       +get the version of the installed commitizen or the current project (default: installed commitizen)
E        
E        options:
E          -h, --help        show this help message and exit
E          -r, --report      get system information for reporting bugs
E          -p, --project     get the version of the current project
E          -c, --commitizen  get the version of the installed commitizen
E       -  -v, --verbose     get the version of both the installed commitizen and the
E       -                    current project
E       +  -v, --verbose     get the version of both the installed commitizen and the current project

tests/commands/test_version_command.py:122: AssertionError
_________________________________________________________ test_check_command_shows_description_when_use_help_option _________________________________________________________
[gw2] darwin -- Python 3.13.2 /Users/bearomorphism/Library/Caches/pypoetry/virtualenvs/commitizen-cUR-hlvL-py3.13/bin/python

mocker = <pytest_mock.plugin.MockerFixture object at 0x1054bb380>, capsys = <_pytest.capture.CaptureFixture object at 0x105347350>
file_regression = <pytest_regressions.file_regression.FileRegressionFixture object at 0x10535fa10>

    @skip_below_py_3_13
    def test_check_command_shows_description_when_use_help_option(
        mocker: MockFixture, capsys, file_regression
    ):
        testargs = ["cz", "check", "--help"]
        mocker.patch.object(sys, "argv", testargs)
        with pytest.raises(SystemExit):
            cli.main()
    
        out, _ = capsys.readouterr()
>       file_regression.check(out, extension=".txt")
E       AssertionError: FILES DIFFER:
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw2/test_check_command_shows_descr0/test_check_command/test_check_command_shows_description_when_use_help_option.txt
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw2/test_check_command_shows_descr0/test_check_command/test_check_command_shows_description_when_use_help_option.obtained.txt
E       HTML DIFF: /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw2/test_check_command_shows_descr0/test_check_command/test_check_command_shows_description_when_use_help_option.obtained.diff.html
E       --- 
E       +++ 
E       @@ -1,6 +1,4 @@
E       -usage: cz check [-h] [--commit-msg-file COMMIT_MSG_FILE |
E       -                --rev-range REV_RANGE | -m MESSAGE] [--allow-abort]
E       -                [--allowed-prefixes [ALLOWED_PREFIXES ...]]
E       +usage: cz check [-h] [--commit-msg-file COMMIT_MSG_FILE | --rev-range REV_RANGE | -m MESSAGE] [--allow-abort] [--allowed-prefixes [ALLOWED_PREFIXES ...]]
E                        [-l MESSAGE_LENGTH_LIMIT]
E        
E        validates that a commit message matches the commitizen schema
E       @@ -8,18 +6,13 @@
E        options:
E          -h, --help            show this help message and exit
E          --commit-msg-file COMMIT_MSG_FILE
E       -                        ask for the name of the temporal file that contains
E       -                        the commit message. Using it in a git hook script:
E       -                        MSG_FILE=$1
E       +                        ask for the name of the temporal file that contains the commit message. Using it in a git hook script: MSG_FILE=$1
E          --rev-range REV_RANGE
E                                a range of git rev to check. e.g, master..HEAD
E          -m, --message MESSAGE
E                                commit message that needs to be checked
E       -  --allow-abort         allow empty commit messages, which typically abort a
E       -                        commit
E       +  --allow-abort         allow empty commit messages, which typically abort a commit
E          --allowed-prefixes [ALLOWED_PREFIXES ...]
E       -                        allowed commit message prefixes. If the message starts
E       -                        by one of these prefixes, the message won't be checked
E       -                        against the regex
E       +                        allowed commit message prefixes. If the message starts by one of these prefixes, the message won't be checked against the regex
E          -l, --message-length-limit MESSAGE_LENGTH_LIMIT
E                                length limit of the commit message; 0 for no limit

tests/commands/test_check_command.py:429: AssertionError
________________________________________________________ test_commit_command_shows_description_when_use_help_option _________________________________________________________
[gw3] darwin -- Python 3.13.2 /Users/bearomorphism/Library/Caches/pypoetry/virtualenvs/commitizen-cUR-hlvL-py3.13/bin/python

mocker = <pytest_mock.plugin.MockerFixture object at 0x10657d4a0>, capsys = <_pytest.capture.CaptureFixture object at 0x105fcb820>
file_regression = <pytest_regressions.file_regression.FileRegressionFixture object at 0x10651bb60>

    @skip_below_py_3_13
    def test_commit_command_shows_description_when_use_help_option(
        mocker: MockFixture, capsys, file_regression
    ):
        testargs = ["cz", "commit", "--help"]
        mocker.patch.object(sys, "argv", testargs)
        with pytest.raises(SystemExit):
            cli.main()
    
        out, _ = capsys.readouterr()
>       file_regression.check(out, extension=".txt")
E       AssertionError: FILES DIFFER:
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw3/test_commit_command_shows_desc0/test_commit_command/test_commit_command_shows_description_when_use_help_option.txt
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw3/test_commit_command_shows_desc0/test_commit_command/test_commit_command_shows_description_when_use_help_option.obtained.txt
E       HTML DIFF: /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw3/test_commit_command_shows_desc0/test_commit_command/test_commit_command_shows_description_when_use_help_option.obtained.diff.html
E       --- 
E       +++ 
E       @@ -1,6 +1,4 @@
E       -usage: cz commit [-h] [--retry] [--no-retry] [--dry-run]
E       -                 [--write-message-to-file FILE_PATH] [-s] [-a] [-e]
E       -                 [-l MESSAGE_LENGTH_LIMIT] [--]
E       +usage: cz commit [-h] [--retry] [--no-retry] [--dry-run] [--write-message-to-file FILE_PATH] [-s] [-a] [-e] [-l MESSAGE_LENGTH_LIMIT] [--]
E        
E        create new commit
E        
E       @@ -10,12 +8,9 @@
E          --no-retry            skip retry if retry_after_failure is set to true
E          --dry-run             show output to stdout, no commit, no modified files
E          --write-message-to-file FILE_PATH
E       -                        write message to file before committing (can be
E       -                        combined with --dry-run)
E       +                        write message to file before committing (can be combined with --dry-run)
E          -s, --signoff         sign off the commit
E       -  -a, --all             Tell the command to automatically stage files that
E       -                        have been modified and deleted, but new files you have
E       -                        not told Git about are not affected.
E       +  -a, --all             Tell the command to automatically stage files that have been modified and deleted, but new files you have not told Git about are not affected.
E          -e, --edit            edit the commit message before committing
E          -l, --message-length-limit MESSAGE_LENGTH_LIMIT
E                                length limit of the commit message; 0 for no limit

tests/commands/test_commit_command.py:525: AssertionError
_________________________________________________________ test_bump_command_shows_description_when_use_help_option __________________________________________________________
[gw0] darwin -- Python 3.13.2 /Users/bearomorphism/Library/Caches/pypoetry/virtualenvs/commitizen-cUR-hlvL-py3.13/bin/python

mocker = <pytest_mock.plugin.MockerFixture object at 0x118646410>, capsys = <_pytest.capture.CaptureFixture object at 0x1184e0c00>
file_regression = <pytest_regressions.file_regression.FileRegressionFixture object at 0x11815ee40>

    @skip_below_py_3_13
    def test_bump_command_shows_description_when_use_help_option(
        mocker: MockFixture, capsys, file_regression
    ):
        testargs = ["cz", "bump", "--help"]
        mocker.patch.object(sys, "argv", testargs)
        with pytest.raises(SystemExit):
            cli.main()
    
        out, _ = capsys.readouterr()
>       file_regression.check(out, extension=".txt")
E       AssertionError: FILES DIFFER:
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw0/test_bump_command_shows_descri0/test_bump_command/test_bump_command_shows_description_when_use_help_option.txt
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw0/test_bump_command_shows_descri0/test_bump_command/test_bump_command_shows_description_when_use_help_option.obtained.txt
E       HTML DIFF: /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw0/test_bump_command_shows_descri0/test_bump_command/test_bump_command_shows_description_when_use_help_option.obtained.diff.html
E       --- 
E       +++ 
E       @@ -1,17 +1,8 @@
E       -usage: cz bump [-h] [--dry-run] [--files-only] [--local-version] [--changelog]
E       -               [--no-verify] [--yes] [--tag-format TAG_FORMAT]
E       -               [--bump-message BUMP_MESSAGE] [--prerelease {alpha,beta,rc}]
E       -               [--devrelease DEVRELEASE] [--increment {MAJOR,MINOR,PATCH}]
E       -               [--increment-mode {linear,exact}] [--check-consistency]
E       -               [--annotated-tag]
E       -               [--annotated-tag-message ANNOTATED_TAG_MESSAGE] [--gpg-sign]
E       -               [--changelog-to-stdout] [--git-output-to-stderr] [--retry]
E       -               [--major-version-zero] [--template TEMPLATE] [--extra EXTRA]
E       -               [--file-name FILE_NAME] [--prerelease-offset PRERELEASE_OFFSET]
E       -               [--version-scheme {pep440,semver,semver2}]
E       -               [--version-type {pep440,semver,semver2}]
E       -               [--build-metadata BUILD_METADATA] [--get-next]
E       -               [--allow-no-commit]
E       +usage: cz bump [-h] [--dry-run] [--files-only] [--local-version] [--changelog] [--no-verify] [--yes] [--tag-format TAG_FORMAT] [--bump-message BUMP_MESSAGE]
E       +               [--prerelease {alpha,beta,rc}] [--devrelease DEVRELEASE] [--increment {MAJOR,MINOR,PATCH}] [--increment-mode {linear,exact}] [--check-consistency]
E       +               [--annotated-tag] [--annotated-tag-message ANNOTATED_TAG_MESSAGE] [--gpg-sign] [--changelog-to-stdout] [--git-output-to-stderr] [--retry]
E       +               [--major-version-zero] [--template TEMPLATE] [--extra EXTRA] [--file-name FILE_NAME] [--prerelease-offset PRERELEASE_OFFSET]
E       +               [--version-scheme {pep440,semver,semver2}] [--version-type {pep440,semver,semver2}] [--build-metadata BUILD_METADATA] [--get-next] [--allow-no-commit]
E                       [MANUAL_VERSION]
E        
E        bump semantic version based on the git log
E       @@ -25,15 +16,12 @@
E          --files-only          bump version in the files from the config
E          --local-version       bump only the local version portion
E          --changelog, -ch      generate the changelog for the newest version
E       -  --no-verify           this option bypasses the pre-commit and commit-msg
E       -                        hooks
E       +  --no-verify           this option bypasses the pre-commit and commit-msg hooks
E          --yes                 accept automatically questions done
E          --tag-format TAG_FORMAT
E       -                        the format used to tag the commit and read it, use it
E       -                        in existing projects, wrap around simple quotes
E       +                        the format used to tag the commit and read it, use it in existing projects, wrap around simple quotes
E          --bump-message BUMP_MESSAGE
E       -                        template used to create the release commit, useful
E       -                        when working with CI
E       +                        template used to create the release commit, useful when working with CI
E          --prerelease, -pr {alpha,beta,rc}
E                                choose type of prerelease
E          --devrelease, -d DEVRELEASE
E       @@ -41,18 +29,12 @@
E          --increment {MAJOR,MINOR,PATCH}
E                                manually specify the desired increment
E          --increment-mode {linear,exact}
E       -                        set the method by which the new version is chosen.
E       -                        'linear' (default) guesses the next version based on
E       -                        typical linear version progression, such that bumping
E       -                        of a pre-release with lower precedence than the
E       -                        current pre-release phase maintains the current phase
E       -                        of higher precedence. 'exact' applies the changes that
E       -                        have been specified (or determined from the commit
E       -                        log) without interpretation, such that the increment
E       -                        and pre-release are always honored
E       +                        set the method by which the new version is chosen. 'linear' (default) guesses the next version based on typical linear version progression, such
E       +                        that bumping of a pre-release with lower precedence than the current pre-release phase maintains the current phase of higher precedence. 'exact'
E       +                        applies the changes that have been specified (or determined from the commit log) without interpretation, such that the increment and pre-release
E       +                        are always honored
E          --check-consistency, -cc
E       -                        check consistency among versions defined in commitizen
E       -                        configuration and version_files
E       +                        check consistency among versions defined in commitizen configuration and version_files
E          --annotated-tag, -at  create annotated tag instead of lightweight one
E          --annotated-tag-message, -atm ANNOTATED_TAG_MESSAGE
E                                create annotated tag message
E       @@ -64,8 +46,7 @@
E          --retry               retry commit if it fails the 1st time
E          --major-version-zero  keep major version at zero, even for breaking changes
E          --template, -t TEMPLATE
E       -                        changelog template file name (relative to the current
E       -                        working directory)
E       +                        changelog template file name (relative to the current working directory)
E          --extra, -e EXTRA     a changelog extra variable (in the form 'key=value')
E          --file-name FILE_NAME
E                                file name of changelog (default: 'CHANGELOG.md')

tests/commands/test_bump_command.py:1449: AssertionError
_______________________________________________________ test_changelog_command_shows_description_when_use_help_option _______________________________________________________
[gw1] darwin -- Python 3.13.2 /Users/bearomorphism/Library/Caches/pypoetry/virtualenvs/commitizen-cUR-hlvL-py3.13/bin/python

mocker = <pytest_mock.plugin.MockerFixture object at 0x110335d90>, capsys = <_pytest.capture.CaptureFixture object at 0x107e49be0>
file_regression = <pytest_regressions.file_regression.FileRegressionFixture object at 0x1102bf8c0>

    @skip_below_py_3_13
    def test_changelog_command_shows_description_when_use_help_option(
        mocker: MockFixture, capsys, file_regression
    ):
        testargs = ["cz", "changelog", "--help"]
        mocker.patch.object(sys, "argv", testargs)
        with pytest.raises(SystemExit):
            cli.main()
    
        out, _ = capsys.readouterr()
>       file_regression.check(out, extension=".txt")
E       AssertionError: FILES DIFFER:
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw1/test_changelog_command_shows_d0/test_changelog_command/test_changelog_command_shows_description_when_use_help_option.txt
E       /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw1/test_changelog_command_shows_d0/test_changelog_command/test_changelog_command_shows_description_when_use_help_option.obtained.txt
E       HTML DIFF: /private/var/folders/mv/d2xpwq4s7cscbzk_v2ymnbq80000gn/T/pytest-of-bearomorphism/pytest-19/popen-gw1/test_changelog_command_shows_d0/test_changelog_command/test_changelog_command_shows_description_when_use_help_option.obtained.diff.html
E       --- 
E       +++ 
E       @@ -1,16 +1,11 @@
E       -usage: cz changelog [-h] [--dry-run] [--file-name FILE_NAME]
E       -                    [--unreleased-version UNRELEASED_VERSION] [--incremental]
E       -                    [--start-rev START_REV] [--merge-prerelease]
E       -                    [--version-scheme {pep440,semver,semver2}]
E       -                    [--export-template EXPORT_TEMPLATE] [--template TEMPLATE]
E       -                    [--extra EXTRA]
E       +usage: cz changelog [-h] [--dry-run] [--file-name FILE_NAME] [--unreleased-version UNRELEASED_VERSION] [--incremental] [--start-rev START_REV] [--merge-prerelease]
E       +                    [--version-scheme {pep440,semver,semver2}] [--export-template EXPORT_TEMPLATE] [--template TEMPLATE] [--extra EXTRA]
E                            [rev_range]
E        
E        generate changelog (note that it will overwrite existing file)
E        
E        positional arguments:
E       -  rev_range             generates changelog for the given version (e.g: 1.5.3)
E       -                        or version range (e.g: 1.5.3..1.7.9)
E       +  rev_range             generates changelog for the given version (e.g: 1.5.3) or version range (e.g: 1.5.3..1.7.9)
E        
E        options:
E          -h, --help            show this help message and exit
E       @@ -18,22 +13,15 @@
E          --file-name FILE_NAME
E                                file name of changelog (default: 'CHANGELOG.md')
E          --unreleased-version UNRELEASED_VERSION
E       -                        set the value for the new version (use the tag value),
E       -                        instead of using unreleased
E       -  --incremental         generates changelog from last created version, useful
E       -                        if the changelog has been manually modified
E       +                        set the value for the new version (use the tag value), instead of using unreleased
E       +  --incremental         generates changelog from last created version, useful if the changelog has been manually modified
E          --start-rev START_REV
E       -                        start rev of the changelog. If not set, it will
E       -                        generate changelog from the start
E       -  --merge-prerelease    collect all changes from prereleases into next non-
E       -                        prerelease. If not set, it will include prereleases in
E       -                        the changelog
E       +                        start rev of the changelog. If not set, it will generate changelog from the start
E       +  --merge-prerelease    collect all changes from prereleases into next non-prerelease. If not set, it will include prereleases in the changelog
E          --version-scheme {pep440,semver,semver2}
E                                choose version scheme
E          --export-template EXPORT_TEMPLATE
E       -                        Export the changelog template into this file instead
E       -                        of rendering it
E       +                        Export the changelog template into this file instead of rendering it
E          --template, -t TEMPLATE
E       -                        changelog template file name (relative to the current
E       -                        working directory)
E       +                        changelog template file name (relative to the current working directory)
E          --extra, -e EXTRA     a changelog extra variable (in the form 'key=value')

tests/commands/test_changelog_command.py:1927: AssertionError
============================================================================= warnings summary ==============================================================================
tests/commands/test_changelog_command.py::test_changelog_from_rev_first_version_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:902: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_latest_version_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:935: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_latest_version_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:944: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_range_default_tag_format
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1029: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_range_default_tag_format
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1037: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1096: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1103: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1110: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_with_big_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1172: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_with_big_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1180: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_with_big_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1186: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_with_big_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1192: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_with_big_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1198: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_version_with_big_range_from_arg
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1205: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_latest_version_dry_run
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1231: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_from_rev_latest_version_dry_run
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1240: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_with_customized_change_type_order
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1288: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_with_customized_change_type_order
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1296: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_with_customized_change_type_order
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1304: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_prerelease_rev_with_use_scheme_semver
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1342: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_prerelease_rev_with_use_scheme_semver
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1351: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_prerelease_rev_with_use_scheme_semver
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1369: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_only_tag_matching_tag_format_included_prefix
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1580: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_only_tag_matching_tag_format_included_prefix_sep
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1603: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_only_tag_matching_tag_format_included_suffix
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1639: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_only_tag_matching_tag_format_included_suffix
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1643: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_only_tag_matching_tag_format_included_suffix_sep
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1668: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

tests/commands/test_changelog_command.py::test_changelog_only_tag_matching_tag_format_included_suffix_sep
  /Users/bearomorphism/workspace/commitizen/tests/commands/test_changelog_command.py:1671: DeprecationWarning: Call to deprecated function (or staticmethod) wait_for_tag. (
  Prefer using `create_file_and_commit(filename, committer_date={your_date})` to influence the order of tags.
  This is because lightweight tags (like the ones created here) use the commit's creatordate which we can specify with the GIT_COMMITTER_DATE flag, instead of waiting entire seconds during tests.)
    wait_for_tag()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================== short test summary info ==========================================================================
FAILED tests/commands/test_version_command.py::test_version_command_shows_description_when_use_help_option - AssertionError: FILES DIFFER:
FAILED tests/commands/test_check_command.py::test_check_command_shows_description_when_use_help_option - AssertionError: FILES DIFFER:
FAILED tests/commands/test_commit_command.py::test_commit_command_shows_description_when_use_help_option - AssertionError: FILES DIFFER:
FAILED tests/commands/test_bump_command.py::test_bump_command_shows_description_when_use_help_option - AssertionError: FILES DIFFER:
FAILED tests/commands/test_changelog_command.py::test_changelog_command_shows_description_when_use_help_option - AssertionError: FILES DIFFER:
=========================================================== 5 failed, 313 passed, 28 warnings in 63.55s (0:01:03) ===========================================================

Steps to reproduce

git clone git@github.com:commitizen-tools/commitizen.git
cd commitizen
poetry install
pytest -n 8 --dist=loadfile tests/commands/test_*_command.py

I already tried

  1. git clean -fdx && poetry install && poetry all
  2. Reboot my machine
  3. Replace -n 8 with -n 1 or -n 3

Current behavior

Tests failed.

Desired behavior

Tests should pass.

Screenshots

No response

Environment

Commitizen Version: 4.7.0
Python Version: 3.13.2 (main, May 12 2025, 02:57:09) [Clang 17.0.0 (clang-1700.0.13.3)]
Operating System: Darwin

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.