Fix build should_perform for empty JSON
This commit is contained in:
parent
2505de8720
commit
6fffc22b8a
2 changed files with 11 additions and 0 deletions
|
@ -13,6 +13,14 @@ class TestCreate(unittest.TestCase):
|
|||
|
||||
|
||||
class TestShouldPerform(unittest.TestCase):
|
||||
def test_build_emptyjson(self):
|
||||
notification_data = AttrDict({
|
||||
'event_config_json': None,
|
||||
})
|
||||
|
||||
# No build data at all.
|
||||
self.assertTrue(BuildSuccessEvent().should_perform({}, notification_data))
|
||||
|
||||
def test_build_nofilter(self):
|
||||
notification_data = AttrDict({
|
||||
'event_config_json': '{}',
|
||||
|
|
Reference in a new issue