File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
vulnerabilities/tests/pipelines/v2_improvers Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 2020)
2121
2222
23- @pytest .mark .django_db
24- def test_is_vcs_url_already_processed_true ():
25- advisory = AdvisoryV2 .objects .create (
26- advisory_id = "CVE-2025-9999" ,
27- datasource_id = "test-ds" ,
28- avid = "test-ds/CVE-2025-9999" ,
29- url = "https://example.com/advisory/CVE-2025-9999" ,
30- unique_content_id = "11111" ,
31- date_collected = datetime .now (),
32- )
33- package = PackageV2 .objects .create (
34- type = "bar" ,
35- name = "foo" ,
36- version = "1.0" ,
37- )
38- impact = ImpactedPackage .objects .create (advisory = advisory )
39- impact .affecting_packages .add (package )
40- package_commit_patch = PackageCommitPatch .objects .create (
41- vcs_url = "https://github.com/user/repo/commit/6bd301819f8f69331a55ae2336c8b111fc933f3d" ,
42- commit_hash = "6bd301819f8f69331a55ae2336c8b111fc933f3d" ,
43- )
44- impact .fixed_by_package_commit_patches .add (package_commit_patch )
45-
46-
4723@pytest .mark .django_db
4824def test_collect_fix_commits_pipeline_creates_entry ():
4925 advisory = AdvisoryV2 .objects .create (
You can’t perform that action at this time.
0 commit comments