Add unit tests for notification module

This commit is contained in:
AlanCoding
2020-04-01 10:19:35 -04:00
committed by beeankha
parent 32783f7aaf
commit 15036ff970
2 changed files with 87 additions and 1 deletions

View File

@@ -426,7 +426,9 @@ def main():
final_notification_configuration.update(notification_configuration)
# Create the data that gets sent for create and update
new_fields = {'notification_configuration': final_notification_configuration}
new_fields = {}
if final_notification_configuration:
new_fields['notification_configuration'] = final_notification_configuration
new_fields['name'] = new_name if new_name else name
if description is not None:
new_fields['description'] = description