This massive set of changes uses the new queue names object throughout the app and tests.

Lots of changes, all changing the line of code that puts things into queues, and the code that tests that.
This commit is contained in:
Martyn Inglis
2017-05-25 10:51:49 +01:00
parent 21586c917c
commit 2591d3a1df
28 changed files with 128 additions and 123 deletions

View File

@@ -374,7 +374,7 @@ def test_send_user_reset_password_should_send_reset_password_link(client,
assert resp.status_code == 204
notification = Notification.query.first()
mocked.assert_called_once_with([str(notification.id)], queue="notify")
mocked.assert_called_once_with([str(notification.id)], queue="notify-internal-tasks")
def test_send_user_reset_password_should_return_400_when_email_is_missing(client, mocker):
@@ -436,7 +436,7 @@ def test_send_already_registered_email(client, sample_user, already_registered_t
assert resp.status_code == 204
notification = Notification.query.first()
mocked.assert_called_once_with(([str(notification.id)]), queue="notify")
mocked.assert_called_once_with(([str(notification.id)]), queue="notify-internal-tasks")
def test_send_already_registered_email_returns_400_when_data_is_missing(client, sample_user):
@@ -464,7 +464,7 @@ def test_send_user_confirm_new_email_returns_204(client, sample_user, change_ema
notification = Notification.query.first()
mocked.assert_called_once_with(
([str(notification.id)]),
queue="notify")
queue="notify-internal-tasks")
def test_send_user_confirm_new_email_returns_400_when_email_missing(client, sample_user, mocker):