File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
services/autoscaling/tests/unit Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -208,10 +208,16 @@ def test_EC2_INSTANCES_ALLOWED_TYPES_empty_not_allowed( # noqa: N802
208208
209209 # now as part of AUTOSCALING_EC2_INSTANCES: EC2InstancesSettings | None
210210 assert os .environ ["AUTOSCALING_EC2_INSTANCES" ] == "{}"
211+
212+ with pytest .raises (ValidationError ) as err_info :
213+ ApplicationSettings .create_from_envs (AUTOSCALING_EC2_INSTANCES = {})
214+
215+ before = err_info .value .errors ()
216+
211217 with pytest .raises (ValidationError ) as err_info :
212218 ApplicationSettings .create_from_envs ()
213219
214- assert err_info .value .errors ()
220+ assert err_info .value .errors () == before
215221
216222 # removing any value for AUTOSCALING_EC2_INSTANCES
217223 monkeypatch .delenv ("AUTOSCALING_EC2_INSTANCES" )
You can’t perform that action at this time.
0 commit comments