Closed
Description
Description
I am seeing some tests failing:
test_bump_pre_commit_changelog_fails_always[True]
test_bump_pre_commit_changelog[True]
test_bump_pre_commit_changelog_fails_always[False]
See resolution (pre-commit was silently failing):
#520 (comment)
Steps to reproduce
- cloned repo
- poetry install
- set up hooks
./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.
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