diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-10 21:25:29 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-09-10 21:25:29 +0300 |
commit | dc9ad00a97b3833561e88a7fd8ffe6ad21bf3e28 (patch) | |
tree | 62293a1b96cdef3a7379d96311d14150f5a459f9 /tests | |
parent | mask: improve parsing of empty header line (diff) | |
download | pkgdev-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.py | 8 |
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: |