add remove_whitelist tests

This commit is contained in:
Leo Hemsted
2016-09-23 10:45:12 +01:00
parent 2e16be18bc
commit 0b8c385de1
3 changed files with 29 additions and 3 deletions

View File

@@ -287,7 +287,6 @@ def get_whitelist(service_id):
@service_blueprint.route('/<uuid:service_id>/whitelist', methods=['POST'])
def update_whitelist(service_id):
# todo: make this transactional
dao_remove_service_whitelist(service_id)
whitelist_objs = [ServiceWhitelist.from_string(service_id, contact) for contact in request.get_json()]