From af3969ed88e00050bbb2188761f050c3d1f9a8f2 Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Sat, 17 Oct 2020 13:00:49 +0200 Subject: [PATCH] Add scenarios check --- bin/check-immutability.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/check-immutability.py b/bin/check-immutability.py index 946d695711..1457134eb9 100755 --- a/bin/check-immutability.py +++ b/bin/check-immutability.py @@ -28,6 +28,11 @@ deleted.add(uuid) continue + # Check that scenarios are only updated additively + if 'scenarios' in case and not set(case['scenarios']).issubset(set(new[uuid]['scenarios'])): + fails.add(uuid) + + # Check for changes to immutable keys for k in immutable_keys: if case[k] != new[uuid][k]: fails.add(uuid)