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

test_bump_pre_commit_changelog is failing on master (afa0d93) for some environments #520

Closed
Labels
@bhelgs

Description

Description

I am seeing some tests failing:

  1. test_bump_pre_commit_changelog_fails_always[True]
  2. test_bump_pre_commit_changelog[True]
  3. test_bump_pre_commit_changelog_fails_always[False]

See resolution (pre-commit was silently failing):
#520 (comment)

Steps to reproduce

  1. cloned repo
  2. poetry install
  3. set up hooks
  4. ./scripts/test

Current behavior

./scripts/test:

FAILED tests/test_bump_create_commit_message.py::test_bump_pre_commit_changelog_fails_always[True] - Failed: DID NOT RAISE <class 'commitizen.exceptions.BumpCommitFailedError'>
FAILED tests/test_bump_create_commit_message.py::test_bump_pre_commit_changelog[True] - AssertionError: assert '## 0.1.1 (20...\n\n- _test\n' == '## 0.1.1 (20...\n- \\_test\n'
FAILED tests/test_bump_create_commit_message.py::test_bump_pre_commit_changelog_fails_always[False] - Failed: DID NOT RAISE <class 'commitizen.exceptions.BumpCommitFailedError'>

I was able to alter this assert in test_bump_pre_commit_changelog to get that test to work.
image

What could be different about my machine? I assume the \\ had purpose otherwise the CI would have failed a couple of days ago when this test was created.

Desired behavior

test pass

Screenshots

No response

Environment

commit hash: afa0d93
platform linux -- Python 3.6.8, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
plugins: regressions-2.3.1, xdist-2.5.0, mock-2.0.0, freezegun-0.4.2, forked-1.4.0, cov-2.12.1, datadir-1.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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