mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 06:20:08 +01:00
fix: gh#172 use default date values
When parsing the current version, if it doesn't specify anyt date part, (such as is the case for e.g. SemVer), then use the current date to populate default parts. This enables updating YYYY patterns in copyright headers even for projects that don't use a CalVer pattern.
This commit is contained in:
parent
028d77751b
commit
53617b2624
4 changed files with 55 additions and 43 deletions
|
|
@ -1200,7 +1200,7 @@ def test_multimatch_file_patterns(config_text, runner):
|
|||
|
||||
|
||||
def _kwargs(year, month, minor=False):
|
||||
return {'date': dt.date(year, month, 1), 'minor': minor}
|
||||
return {'maybe_date': dt.date(year, month, 1), 'minor': minor}
|
||||
|
||||
|
||||
ROLLOVER_TEST_CASES = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue