File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848}
4949
5050
51- class TestMandateFields :
51+ class TestMandatoryFields :
5252 def test_valid_base_configuration (self ):
5353 try :
5454 CampaignConfigValidation (** valid_base )
5555 except ValidationError as e :
5656 pytest .fail (f"Unexpected error during model instantiation: { e } " )
5757
5858 @pytest .mark .parametrize (
59- "mandate_field " ,
59+ "mandatory_field " ,
6060 [
6161 "ID" ,
6262 "Version" ,
@@ -70,12 +70,12 @@ def test_valid_base_configuration(self):
7070 "Iterations" ,
7171 ],
7272 )
73- def test_missing_mandate_fields (self , mandate_field ):
73+ def test_missing_mandatory_fields (self , mandatory_field ):
7474 data = valid_base .copy ()
75- data .pop (mandate_field , None ) # Simulate missing field
75+ data .pop (mandatory_field , None ) # Simulate missing field
7676 with pytest .raises (ValidationError ):
7777 CampaignConfigValidation (** data )
78- assert mandate_field .lower ()
78+ assert mandatory_field .lower ()
7979
8080 # ID field
8181
You can’t perform that action at this time.
0 commit comments