aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-12-15 13:20:49 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-12-15 13:20:49 +0200
commit290143b24bab7ccc2f083395e13bd188132b54be (patch)
tree5e34906ea278c3521145f027e7868fffe56b1b4b /tests
parentbugs: print bug summary where existing bug is found (diff)
downloadpkgdev-290143b24bab7ccc2f083395e13bd188132b54be.tar.gz
pkgdev-290143b24bab7ccc2f083395e13bd188132b54be.tar.bz2
pkgdev-290143b24bab7ccc2f083395e13bd188132b54be.zip
bugs: mention age of packages in the bug description
Resolves: https://github.com/pkgcore/pkgdev/issues/140 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/scripts/test_pkgdev_bugs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scripts/test_pkgdev_bugs.py b/tests/scripts/test_pkgdev_bugs.py
index e020ffd..641e5f0 100644
--- a/tests/scripts/test_pkgdev_bugs.py
+++ b/tests/scripts/test_pkgdev_bugs.py
@@ -68,7 +68,7 @@ class TestBugFiling:
session = BugsSession()
pkg = max(repo.itermatch(atom("=cat/u-0")))
with patch("pkgdev.scripts.pkgdev_bugs.urllib.urlopen", session):
- bugs.GraphNode(((pkg, {"*"}),)).file_bug("API", frozenset(), ())
+ bugs.GraphNode(((pkg, {"*"}),)).file_bug("API", frozenset(), (), None)
assert len(session.calls) == 1
call = session.calls[0]
assert call["Bugzilla_api_key"] == "API"
@@ -83,7 +83,7 @@ class TestBugFiling:
session = BugsSession()
pkg = max(repo.itermatch(atom("=cat/z-0")))
with patch("pkgdev.scripts.pkgdev_bugs.urllib.urlopen", session):
- bugs.GraphNode(((pkg, {"*"}),)).file_bug("API", frozenset(), ())
+ bugs.GraphNode(((pkg, {"*"}),)).file_bug("API", frozenset(), (), None)
assert len(session.calls) == 1
call = session.calls[0]
assert call["assigned_to"] == "maintainer-needed@gentoo.org"
@@ -99,7 +99,7 @@ class TestBugFiling:
node = bugs.GraphNode(((pkgX, {"*"}), (pkgY, {"*"}), (pkgZ, {"*"})))
node.edges.add(dep)
with patch("pkgdev.scripts.pkgdev_bugs.urllib.urlopen", session):
- node.file_bug("API", frozenset(), ())
+ node.file_bug("API", frozenset(), (), None)
assert len(session.calls) == 1
call = session.calls[0]
assert call["summary"] == "cat/x-0, cat/y-0, cat/z-0: stablereq"