aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-10 21:25:29 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-10 21:25:29 +0300
commitdc9ad00a97b3833561e88a7fd8ffe6ad21bf3e28 (patch)
tree62293a1b96cdef3a7379d96311d14150f5a459f9 /tests
parentmask: improve parsing of empty header line (diff)
downloadpkgdev-dc9ad00a97b3833561e88a7fd8ffe6ad21bf3e28.tar.gz
pkgdev-dc9ad00a97b3833561e88a7fd8ffe6ad21bf3e28.tar.bz2
pkgdev-dc9ad00a97b3833561e88a7fd8ffe6ad21bf3e28.zip
mask: better format for last rites with bugs
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev_mask.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/scripts/test_pkgdev_mask.py b/tests/scripts/test_pkgdev_mask.py
index aff8c89..978eb72 100644
--- a/tests/scripts/test_pkgdev_mask.py
+++ b/tests/scripts/test_pkgdev_mask.py
@@ -259,7 +259,7 @@ class TestPkgdevMask:
assert self.masks_path.read_text() == textwrap.dedent(f"""\
# First Last <first.last@email.com> ({today})
# mask comment
- # Removal: {removal}
+ # Removal: {removal}.
cat/pkg
""")
self.masks_path.write_text("") # Reset the contents of package.mask
@@ -290,13 +290,11 @@ class TestPkgdevMask:
assert err.strip() == "pkgdev mask: error: failed opening email composer"
def test_mask_bugs(self):
- removal_date = self.today + timedelta(days=30)
today = self.today.strftime('%Y-%m-%d')
- removal = removal_date.strftime('%Y-%m-%d')
for bflag in ('-b', '--bug'):
for (bug_nums, expected) in [
- (['42'], 'Bug #42'),
- (['42', '43'], 'Bugs #42, #43'),
+ (['42'], 'Bug #42.'),
+ (['42', '43'], 'Bugs #42, #43.'),
]:
args = []
for bug_num in bug_nums: