Debian Codegraph @

debian/patches/ignore_tests_requiring_conda_exe.patch

raw
1 Author: Andreas Tille <[email protected]>
2 Last-Update: 2022-11-30
3 Description: Skip test that are testing conda executable
4
5 --- a/tests/test_extract.py
6 +++ b/tests/test_extract.py
7 @@ -12,7 +12,7 @@
8 HAS_TAR_FILTER = hasattr(tarfile, "tar_filter")
9 MAX_CONDAS = 8
10
11 -
12 [email protected](reason="Conda is not yet available for Debian")
13 def test_extract_stream(conda_paths, tmp_path):
14 for i, package in enumerate(conda_paths):
15 print(package)
16 @@ -26,7 +26,7 @@
17 if i >= MAX_CONDAS:
18 break
19
20 -
21 [email protected](reason="Conda is not yet available for Debian")
22 def test_extract_all(conda_paths, tmp_path):
23 for i, package in enumerate(conda_paths):
24 print(package)
25 @@ -125,6 +125,7 @@
26 extract.extract_stream(stream(tar2), tmp_path)
27
28
29 [email protected](reason="Conda is not yet available for Debian")
30 def test_chown(conda_paths, tmp_path):
31 for package in conda_paths[:2]:
32 print(package)
33 --- a/tests/test_s3.py
34 +++ b/tests/test_s3.py
35 @@ -19,13 +19,13 @@
36 )
37 return client
38
39 -
40 [email protected](reason="Conda is not yet available for Debian")
41 def test_head_objects(s3_client, conda_paths):
42 bucket = "pkgs" # independent of filesystem path
43 for path in conda_paths[:LIMIT]:
44 s3_client.head_object(Bucket=bucket, Key=path.name)
45
46 -
47 [email protected](reason="Conda is not yet available for Debian")
48 def test_stream_s3(s3_client, conda_paths):
49 with pytest.raises(ValueError):
50 next(s3.stream_conda_info(s3_client, "pkgs", "notaconda.rar"))
51 --- a/tests/test_streaming.py
52 +++ b/tests/test_streaming.py
53 @@ -6,7 +6,7 @@
54
55 from conda_package_streaming import package_streaming
56
57 -
58 [email protected](reason="Conda is not yet available for Debian")
59 def test_package_streaming(conda_paths):
60 for path in conda_paths:
61 if str(path).endswith(".conda"):
62 @@ -16,7 +16,7 @@
63 with pytest.raises(ValueError):
64 package_streaming.stream_conda_component("notapackage.rar")
65
66 -
67 [email protected](reason="Conda is not yet available for Debian")
68 def test_early_exit(conda_paths):
69 for package in conda_paths:
70 print(package)
71 --- a/tests/test_transmute.py
72 +++ b/tests/test_transmute.py
73 @@ -51,6 +51,7 @@
74 print(f"{message}{end - begin:0.2f}s")
75
76
77 [email protected](reason="Conda is not yet available for Debian")
78 def test_transmute(conda_paths: list[Path], tmpdir):
79 tarbz_packages = []
80 for path in conda_paths:
81 @@ -112,7 +113,7 @@
82 items = stream_conda_component("test.conda", fileobj, component)
83 assert {member.name for tar, member in items} == expected, items
84
85 -
86 [email protected](reason="Conda is not yet available for Debian")
87 def test_transmute_backwards(tmpdir, conda_paths):
88 tarbz_packages = []
89 for path in conda_paths:
90 @@ -177,6 +178,7 @@
91 assert bool(e.filelist[2].extra) == extra_expected
92
93
94 [email protected](reason="Conda is not yet available for Debian")
95 def test_transmute_stream(tmpdir, conda_paths):
96 """
97 Test example from transmute_stream documentation. Recompress .conda using
98 --- a/tests/test_url.py
99 +++ b/tests/test_url.py
100 @@ -48,7 +48,7 @@
101 urls.extend(pair)
102 return urls
103
104 -
105 [email protected](reason="Conda is not yet available for Debian")
106 def test_stream_url(package_urls):
107 with pytest.raises(ValueError):
108 next(stream_conda_info("https://localhost/notaconda.rar"))
109 @@ -62,13 +62,13 @@
110 else:
111 pytest.fail("info/index.json not found")
112
113 -
114 [email protected](reason="Conda is not yet available for Debian")
115 def test_fetch_meta(package_urls):
116 for url in package_urls:
117 with tempfile.TemporaryDirectory() as destdir:
118 extract_conda_info(url, destdir)
119
120 -
121 [email protected](reason="Conda is not yet available for Debian")
122 def test_lazy_wheel(package_urls):
123 lazy_tests = 7
124 for url in package_urls: