Skip to content

Commit 3760422

Browse files
committed
Fix tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent f86eae3 commit 3760422

File tree

7 files changed

+172
-563
lines changed

7 files changed

+172
-563
lines changed

vulnerabilities/importers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
from vulnerabilities.pipelines.v2_importers import (
4747
elixir_security_importer as elixir_security_importer_v2,
4848
)
49+
from vulnerabilities.pipelines.v2_importers import github_osv_importer as github_osv_importer_v2
4950
from vulnerabilities.pipelines.v2_importers import gitlab_importer as gitlab_importer_v2
5051
from vulnerabilities.pipelines.v2_importers import istio_importer as istio_importer_v2
5152
from vulnerabilities.pipelines.v2_importers import mozilla_importer as mozilla_importer_v2
@@ -75,6 +76,7 @@
7576
istio_importer_v2.IstioImporterPipeline,
7677
postgresql_importer_v2.PostgreSQLImporterPipeline,
7778
mozilla_importer_v2.MozillaImporterPipeline,
79+
github_osv_importer_v2.GithubOSVImporterPipeline,
7880
nvd_importer.NVDImporterPipeline,
7981
github_importer.GitHubAPIImporterPipeline,
8082
gitlab_importer.GitLabImporterPipeline,

vulnerabilities/pipelines/v2_importers/elixir_security_importer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ def collect_advisories(self) -> Iterable[AdvisoryData]:
6565
if self.vcs_response:
6666
self.vcs_response.delete()
6767

68+
def on_failure(self):
69+
self.clean_downloads()
70+
6871
def process_file(self, file, base_path) -> Iterable[AdvisoryData]:
6972
relative_path = str(file.relative_to(base_path)).strip("/")
7073
path_segments = str(file).split("/")

0 commit comments

Comments
 (0)