Skip to content

Commit

Permalink
StateValidation: All states MUST have a “Type” field.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgilman committed Jul 7, 2018
1 parent 96b2e4e commit 1c5f234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stairstep/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def __init__(self,

self.base_validations = [
validation_states_cant_have_both_end_and_next,
validation_name_cannot_be_longer_than_128
validation_name_cannot_be_longer_than_128,
validation_all_states_must_have_type
]
self.validations = []

Expand Down
1 change: 1 addition & 0 deletions tests/test_03fieldValidation.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_all_state_validations(self):
all_validations = [
validation_states_cant_have_both_end_and_next,
validation_name_cannot_be_longer_than_128,
validation_all_states_must_have_type
]

for v in all_validations:
Expand Down

0 comments on commit 1c5f234

Please sign in to comment.