Fix for simulated notifications.

When a post is made for a simulated number the id is empty in the notificaiton object that we return.
This fixes that.
This commit is contained in:
Rebecca Law
2017-07-20 17:56:51 +01:00
parent 49bbd1a29b
commit d4bbca2592
2 changed files with 4 additions and 1 deletions

View File

@@ -201,6 +201,7 @@ def test_should_not_persist_or_send_notification_if_simulated_recipient(
assert response.status_code == 201
apply_async.assert_not_called()
assert json.loads(response.get_data(as_text=True))["id"]
assert Notification.query.count() == 0