mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 22:40:09 +01:00
formatting for new style versions
This commit is contained in:
parent
f21c0f1d0f
commit
b07edc9c8a
12 changed files with 288 additions and 261 deletions
|
|
@ -141,8 +141,8 @@ def test_v1_optional_release():
|
|||
|
||||
def test_v2_optional_release():
|
||||
old_lines = OPTIONAL_RELEASE_FIXTURE.splitlines()
|
||||
pattern = "YYYY.BUILD[-TAG]"
|
||||
patterns = ['__version__ = "YYYY.BUILD[-TAG]"']
|
||||
pattern = "YYYY.BUILD[-RELEASE]"
|
||||
patterns = ['__version__ = "YYYY.BUILD[-RELEASE]"']
|
||||
|
||||
new_vinfo = v2version.parse_version_info("2019.0003", pattern)
|
||||
new_lines = v2rewrite.rewrite_lines(patterns, new_vinfo, old_lines)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue