From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 08E3615806E for ; Sun, 28 May 2023 19:41:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B497E07EA; Sun, 28 May 2023 19:41:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ECF20E07EA for ; Sun, 28 May 2023 19:41:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 15B9C34103C for ; Sun, 28 May 2023 19:41:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 71DD6A71 for ; Sun, 28 May 2023 19:41:44 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1685302896.18132b04dfc68a821df6b876fcd66a79bd2f2980.arthurzam@gentoo> Subject: [gentoo-commits] proj/pkgcore/pkgdev:main commit in: tests/scripts/ X-VCS-Repository: proj/pkgcore/pkgdev X-VCS-Files: tests/scripts/test_pkgdev_bugs.py X-VCS-Directories: tests/scripts/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 18132b04dfc68a821df6b876fcd66a79bd2f2980 X-VCS-Branch: main Date: Sun, 28 May 2023 19:41:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6924a746-4c8f-483f-984c-11c9178bacef X-Archives-Hash: 7683ba2b03b4034bea091d6c264fd410 commit: 18132b04dfc68a821df6b876fcd66a79bd2f2980 Author: Arthur Zamarin gentoo org> AuthorDate: Sun May 28 19:40:28 2023 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sun May 28 19:41:36 2023 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgdev.git/commit/?id=18132b04 tests/bugs: fix tests after addition of blocks_bug Fixes: f5b955018af5715bdd72ce6b094bf901be2d8ced Signed-off-by: Arthur Zamarin gentoo.org> tests/scripts/test_pkgdev_bugs.py | 6 +++--- 1 file 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"