aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-05-28 22:40:28 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-05-28 22:41:36 +0300
commit18132b04dfc68a821df6b876fcd66a79bd2f2980 (patch)
tree0732ac3954d1b63c2dcad7c5a5eda241f3302fa5
parentbugs: fix wrong blocks_bug arg to deps bugs (diff)
downloadpkgdev-18132b04dfc68a821df6b876fcd66a79bd2f2980.tar.gz
pkgdev-18132b04dfc68a821df6b876fcd66a79bd2f2980.tar.bz2
pkgdev-18132b04dfc68a821df6b876fcd66a79bd2f2980.zip
tests/bugs: fix tests after addition of blocks_bug
Fixes: f5b955018af5715bdd72ce6b094bf901be2d8ced Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-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 708ff39..e020ffd 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(), ())
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(), ())
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(), ())
assert len(session.calls) == 1
call = session.calls[0]
assert call["summary"] == "cat/x-0, cat/y-0, cat/z-0: stablereq"