Author: Andreas Tille Last-Update: 2022-11-30 Description: Skip test that are testing conda executable --- a/tests/test_extract.py +++ b/tests/test_extract.py @@ -12,7 +12,7 @@ HAS_TAR_FILTER = hasattr(tarfile, "tar_filter") MAX_CONDAS = 8 - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_extract_stream(conda_paths, tmp_path): for i, package in enumerate(conda_paths): print(package) @@ -26,7 +26,7 @@ if i >= MAX_CONDAS: break - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_extract_all(conda_paths, tmp_path): for i, package in enumerate(conda_paths): print(package) @@ -125,6 +125,7 @@ extract.extract_stream(stream(tar2), tmp_path) +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_chown(conda_paths, tmp_path): for package in conda_paths[:2]: print(package) --- a/tests/test_s3.py +++ b/tests/test_s3.py @@ -19,13 +19,13 @@ ) return client - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_head_objects(s3_client, conda_paths): bucket = "pkgs" # independent of filesystem path for path in conda_paths[:LIMIT]: s3_client.head_object(Bucket=bucket, Key=path.name) - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_stream_s3(s3_client, conda_paths): with pytest.raises(ValueError): next(s3.stream_conda_info(s3_client, "pkgs", "notaconda.rar")) --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -6,7 +6,7 @@ from conda_package_streaming import package_streaming - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_package_streaming(conda_paths): for path in conda_paths: if str(path).endswith(".conda"): @@ -16,7 +16,7 @@ with pytest.raises(ValueError): package_streaming.stream_conda_component("notapackage.rar") - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_early_exit(conda_paths): for package in conda_paths: print(package) --- a/tests/test_transmute.py +++ b/tests/test_transmute.py @@ -51,6 +51,7 @@ print(f"{message}{end - begin:0.2f}s") +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_transmute(conda_paths: list[Path], tmpdir): tarbz_packages = [] for path in conda_paths: @@ -112,7 +113,7 @@ items = stream_conda_component("test.conda", fileobj, component) assert {member.name for tar, member in items} == expected, items - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_transmute_backwards(tmpdir, conda_paths): tarbz_packages = [] for path in conda_paths: @@ -177,6 +178,7 @@ assert bool(e.filelist[2].extra) == extra_expected +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_transmute_stream(tmpdir, conda_paths): """ Test example from transmute_stream documentation. Recompress .conda using --- a/tests/test_url.py +++ b/tests/test_url.py @@ -48,7 +48,7 @@ urls.extend(pair) return urls - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_stream_url(package_urls): with pytest.raises(ValueError): next(stream_conda_info("https://localhost/notaconda.rar")) @@ -62,13 +62,13 @@ else: pytest.fail("info/index.json not found") - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_fetch_meta(package_urls): for url in package_urls: with tempfile.TemporaryDirectory() as destdir: extract_conda_info(url, destdir) - +@pytest.mark.skip(reason="Conda is not yet available for Debian") def test_lazy_wheel(package_urls): lazy_tests = 7 for url in package_urls: