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(