File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
tests/pipelines/v2_improvers Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -3510,9 +3510,7 @@ class AdvisoryPOC(models.Model):
35103510 null = True , blank = True , help_text = "The date and time when this POC was last updated."
35113511 )
35123512
3513- url = models .URLField (
3514- help_text = "The URL of the PoC, such as a repository or resource link."
3515- )
3513+ url = models .URLField (help_text = "The URL of the PoC, such as a repository or resource link." )
35163514
35173515 is_confirmed = models .BooleanField (
35183516 default = False , help_text = "Indicates whether this POC has been verified or confirmed."
Original file line number Diff line number Diff line change @@ -70,8 +70,18 @@ def test_github_poc_db_improver(mock_fetch_via_vcs):
7070 improver .execute ()
7171
7272 assert len (AdvisoryPOC .objects .all ()) == 10
73- exploit = AdvisoryPOC .objects .first ()
74- assert exploit .url == "https://github.com/iSee857/CVE-2025-0108-PoC"
75- assert exploit .is_confirmed == False
76- assert str (exploit .created_at ) == "2025-02-13 06:39:25+00:00"
77- assert str (exploit .updated_at ) == "2025-09-03 18:40:14+00:00"
73+ exploit1 = AdvisoryPOC .objects .get (
74+ url = "https://github.com/iSee857/CVE-2025-0108-PoC" ,
75+ is_confirmed = False ,
76+ )
77+ exploit2 = AdvisoryPOC .objects .get (
78+ url = "https://github.com/FOLKS-iwd/CVE-2025-0108-PoC" , advisory = adv2
79+ )
80+ exploit3 = AdvisoryPOC .objects .get (
81+ url = "https://github.com/B1ack4sh/Blackash-CVE-2025-0108" ,
82+ )
83+ assert exploit1 .url == "https://github.com/iSee857/CVE-2025-0108-PoC"
84+ assert str (exploit1 .created_at ) == "2025-02-13 06:39:25+00:00"
85+ assert str (exploit2 .updated_at ) == "2025-04-28 07:22:48+00:00"
86+ assert exploit2 .url == "https://github.com/FOLKS-iwd/CVE-2025-0108-PoC"
87+ assert exploit3 .url == "https://github.com/B1ack4sh/Blackash-CVE-2025-0108"
You can’t perform that action at this time.
0 commit comments