From dc9ad00a97b3833561e88a7fd8ffe6ad21bf3e28 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Sat, 10 Sep 2022 21:25:29 +0300 Subject: mask: better format for last rites with bugs Signed-off-by: Arthur Zamarin --- tests/scripts/test_pkgdev_mask.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') 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 ({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: -- cgit v1.2.3-65-gdbad