File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 99
1010from django .test import TestCase
1111
12- from vulnerabilities .forms import CVEForm
12+ from vulnerabilities .forms import VulnerabilityForm
1313from vulnerabilities .models import Vulnerability
1414
1515
16- class TestCVEForm (TestCase ):
16+ class TestVulnerabilityForm (TestCase ):
1717 def setUp (self ) -> None :
1818 vuln1 = Vulnerability .objects .create (summary = "test-vuln1" , vulnerability_id = "VCID-1234" )
1919 self .id = vuln1 .id
2020
21- def test_cve_form (self ):
22- form = CVEForm (data = {"vuln_id " : "vcid-1234" })
21+ def test_VulnerabilityForm__is_valid_with_simple_input (self ):
22+ form = VulnerabilityForm (data = {"vulnerability_id " : "vcid-1234" })
2323 assert form .is_valid ()
2424
25- def test_client (self ):
25+ def test_vulnerabilities_client (self ):
2626 response = self .client .get (f"/vulnerabilities/{ self .id } ?vuln_id=vcid-1234" )
2727 self .assertContains (response , "test-vuln1" , status_code = 200 )
You can’t perform that action at this time.
0 commit comments