public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: tests/addons/
Date: Wed,  8 May 2024 16:24:13 +0000 (UTC)	[thread overview]
Message-ID: <1715185401.5650f79e69382b9efac0210383fb0960ef054893.arthurzam@gentoo> (raw)

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(


                 reply	other threads:[~2024-05-08 16:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1715185401.5650f79e69382b9efac0210383fb0960ef054893.arthurzam@gentoo \
    --to=arthurzam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox