Skip to content

Commit 8a96f7b

Browse files
committed
extends tests
1 parent d2edb79 commit 8a96f7b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/autoscaling/tests/unit/test_core_settings.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)