File: Disable-tests-that-would-require-remote-access.patch

package info (click to toggle)
parfive 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 428 kB
  • sloc: python: 2,038; makefile: 27
file content (52 lines) | stat: -rw-r--r-- 1,717 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From: Ole Streicher <olebole@debian.org>
Date: Tue, 14 Sep 2021 10:24:07 +0200
Subject: Disable tests that would require remote access

---
 parfive/tests/test_downloader.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/parfive/tests/test_downloader.py b/parfive/tests/test_downloader.py
index b57635a..0c2e122 100644
--- a/parfive/tests/test_downloader.py
+++ b/parfive/tests/test_downloader.py
@@ -386,6 +386,7 @@ def test_done_callback_error(tmp_path, testserver):
 
 
 @skip_windows
+@pytest.mark.skip(reason="Don't try remove access")
 @pytest.mark.allow_hosts(True)
 def test_ftp(tmpdir):
     tmpdir = str(tmpdir)
@@ -404,6 +405,7 @@ def test_ftp(tmpdir):
 # I don't know of an alternative server which makes any sense to test this with
 @pytest.mark.skip("Remote server offline")
 @skip_windows
+@pytest.mark.skip(reason="Don't try remove access")
 @pytest.mark.allow_hosts(True)
 def test_ftp_pasv_command(tmpdir):
     tmpdir = str(tmpdir)
@@ -420,6 +422,7 @@ def test_ftp_pasv_command(tmpdir):
 
 
 @skip_windows
+@pytest.mark.skip(reason="Don't try remove access")
 @pytest.mark.allow_hosts(True)
 def test_ftp_http(tmpdir, httpserver):
     tmpdir = str(tmpdir)
@@ -527,6 +530,7 @@ def test_http_callback_success(httpserver, tmpdir):
     assert cb_status is None
 
 
+@pytest.mark.skip(reason="Don't try remove access")
 def test_http_callback_fail(tmpdir):
     # Test callback on failed download
     cb = MagicMock()
@@ -547,6 +551,7 @@ def test_http_callback_fail(tmpdir):
 
 
 @pytest.mark.allow_hosts(True)
+@pytest.mark.skip(reason="Don't try remove access")
 def test_ftp_callback_success(tmpdir):
     cb = MagicMock()
     dl = Downloader(config=SessionConfig(done_callbacks=[cb]))