-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# * date Author's Name <author's email> version-release | ||
# - Summary of changes | ||
|
||
* Fri Jan 3 2020 Richard Liebscher <[email protected]> 0.5-1 | ||
* Sat Jan 04 2020 Richard Liebscher <[email protected]> 0.5-1 | ||
- Added Contacts plugin. | ||
- Resolve Phonenumbers to contact names in telephony plugin. | ||
- Starts now at system start as systemd user service when in background mode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ | |
import datetime | ||
|
||
|
||
def apply_inplace(text, fn, args): | ||
change = fn(changelog=text, args=args) | ||
def apply_inplace(text, fn, *args, **kwargs): | ||
change = fn(changelog=text, args=args, **kwargs) | ||
if change: | ||
return text[:change.start] + change.replacement + text[change.end:] | ||
else: | ||
|
@@ -46,8 +46,7 @@ def test_release(): | |
* Sat Mar 02 2000 the author <[email protected]> 0.1-1 | ||
""") | ||
|
||
date = format_datetime(datetime.datetime.now()) | ||
assert dedent(""" | ||
* {} the author <[email protected]> 0.1-1 | ||
""".format(date)) == apply_inplace(changelog, release, []) | ||
* Fri Jan 03 2020 the author <[email protected]> 0.1-1 | ||
""") == apply_inplace(changelog, release, date=datetime.datetime(2020, 1, 3)) | ||
|