diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-26 15:07:31 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-06-29 18:17:19 +0200 |
commit | f3aaac38547e0dd9e1942a647e603465cf09ecff (patch) | |
tree | bcf5973b97eb4843aa1ad10c76d351f3671b1524 /script/test_bump_changelog.py | |
parent | 86837c350450e0da64260c8e206c2cf6f882fb11 (diff) | |
download | astroid-git-f3aaac38547e0dd9e1942a647e603465cf09ecff.tar.gz |
Add logging in the bump version script
Diffstat (limited to 'script/test_bump_changelog.py')
-rw-r--r-- | script/test_bump_changelog.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/script/test_bump_changelog.py b/script/test_bump_changelog.py index fcdbd225..cfb27e42 100644 --- a/script/test_bump_changelog.py +++ b/script/test_bump_changelog.py @@ -1,3 +1,5 @@ +import logging + import pytest from bump_changelog import VersionType, get_next_version, transform_content @@ -101,7 +103,8 @@ def test_update_content_error(old_content, version, expected_error): transform_content(old_content, version) -def test_update_content(): +def test_update_content(caplog): + caplog.set_level(logging.DEBUG) old_content = """ =================== astroid's ChangeLog @@ -127,4 +130,6 @@ What's New in astroid 2.6.1? Release Date: 20""" new_content = transform_content(old_content, "2.6.1") - assert new_content.startswith(expected_beginning) + assert new_content.startswith( + expected_beginning + ), f"Wrong start for:'{new_content[len(expected_beginning):]}'" |