File: skip_online_tests.patch

package info (click to toggle)
python-etelemetry 0.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 240 kB
  • sloc: python: 1,722; makefile: 9; sh: 8
file content (23 lines) | stat: -rw-r--r-- 680 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Skip two tests accessing network
Author: Andreas Tille <tille@debian.org>
Last-Update: Tue, 29 Sep 2020 09:46:21 +0200

--- a/etelemetry/tests/test_client.py
+++ b/etelemetry/tests/test_client.py
@@ -15,7 +15,7 @@
         _etrequest(endpoint, timeout=0.001)
     assert _etrequest(endpoint)
 
-
+@pytest.mark.skip(reason='Tries to download something')
 def test_get_project():
     repo = "invalidrepo"
     with pytest.raises(ValueError):
@@ -40,6 +40,7 @@
         os.environ["NO_ET"] = old_var[1]
 
 
+@pytest.mark.skip(reason='Tries to download something')
 def test_check_available():
     repo = "invalidrepo"
     res = check_available_version(repo, "0.1.0")