Skip to content

Commit

Permalink
Add scenarios check
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaMann committed Oct 17, 2020
1 parent b010ec0 commit af3969e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/check-immutability.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af3969e

Please sign in to comment.