* [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: tests/addons/
@ 2024-05-08 16:24 Arthur Zamarin
0 siblings, 0 replies; only message in thread
From: Arthur Zamarin @ 2024-05-08 16:24 UTC (permalink / raw
To: gentoo-commits
commit: 5650f79e69382b9efac0210383fb0960ef054893
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Tue Apr 30 21:35:04 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Wed May 8 16:23:21 2024 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=5650f79e
modify test to check that timeout=0 is never passed to _ftp_check
followup to f691ea197c3db922edf33e570708751421db48aa
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
Closes: https://github.com/pkgcore/pkgcheck/pull/678
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
tests/addons/test_addons.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/addons/test_addons.py b/tests/addons/test_addons.py
index 47503a6c..c02214f7 100644
--- a/tests/addons/test_addons.py
+++ b/tests/addons/test_addons.py
@@ -387,10 +387,12 @@ class TestNetAddon:
addon = addons.NetAddon(options)
assert isinstance(addon.session, requests.Session)
assert addon.session.timeout == 10
+ assert addon.timeout == 10
# a timeout of zero disables timeouts entirely
options, _ = tool.parse_args(["scan", "--timeout", "0"])
addon = addons.NetAddon(options)
assert addon.session.timeout is None
+ assert addon.timeout is None
def test_args(self, tool):
options, _ = tool.parse_args(
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-08 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-08 16:24 [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: tests/addons/ Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox