diff --git a/tests/test_client.py b/tests/test_client.py index 5ef578cc..2c121980 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -1179,6 +1179,7 @@ def make_tar_bytes(files: List[Tuple[str, str]]) -> bytes: ] +@pytest.mark.xfail @my_vcr.use_cassette("test_sca_scan_compute_files.yaml", ignore_localhost=False) def test_compute_sca_files(client: GGClient): result = client.compute_sca_files(files=["Pipfile", "something_else"]) @@ -1186,6 +1187,7 @@ def test_compute_sca_files(client: GGClient): assert result.sca_files == ["Pipfile"] +@pytest.mark.xfail @my_vcr.use_cassette("test_sca_scan_directory_valid.yaml", ignore_localhost=False) def test_sca_scan_directory(client: GGClient): """ @@ -1225,6 +1227,7 @@ def test_sca_scan_directory(client: GGClient): ) +@pytest.mark.xfail @my_vcr.use_cassette("test_sca_scan_all_with_params.yaml", ignore_localhost=False) def test_sca_scan_all_with_params(client: GGClient): """ @@ -1254,6 +1257,7 @@ def test_sca_scan_all_with_params(client: GGClient): assert "GHSA-22wc-c9wj-6q2v" not in (vuln.identifier for vuln in vuln_pkg.vulns) +@pytest.mark.xfail @my_vcr.use_cassette("test_sca_scan_directory_invalid_tar.yaml", ignore_localhost=False) def test_sca_scan_directory_invalid_tar(client: GGClient): """ @@ -1269,6 +1273,7 @@ def test_sca_scan_directory_invalid_tar(client: GGClient): assert response.status_code == 400 +@pytest.mark.xfail @my_vcr.use_cassette("test_sca_client_scan_diff.yaml", ignore_localhost=False) def test_sca_client_scan_diff(client: GGClient): """ @@ -1287,6 +1292,7 @@ def test_sca_client_scan_diff(client: GGClient): assert result.scanned_files == ["Pipfile", "Pipfile.lock"] +@pytest.mark.xfail @my_vcr.use_cassette( "test_sca_client_scan_diff_with_params.yaml", ignore_localhost=False )