2017-08-22 15:49:56 +01:00
|
|
|
from app.config import QueueNames
|
2016-12-08 12:12:45 +00:00
|
|
|
|
|
|
|
|
|
2017-08-22 15:49:56 +01:00
|
|
|
def test_queue_names_all_queues_correct():
|
|
|
|
|
# Need to ensure that all_queues() only returns queue names used in API
|
|
|
|
|
queues = QueueNames.all_queues()
|
2023-08-25 12:09:00 -07:00
|
|
|
assert len(queues) == 15
|
2017-08-22 16:26:07 +01:00
|
|
|
assert set([
|
|
|
|
|
QueueNames.PRIORITY,
|
|
|
|
|
QueueNames.PERIODIC,
|
|
|
|
|
QueueNames.DATABASE,
|
|
|
|
|
QueueNames.SEND_SMS,
|
2023-05-04 07:56:24 -07:00
|
|
|
QueueNames.CHECK_SMS,
|
2017-08-22 16:26:07 +01:00
|
|
|
QueueNames.SEND_EMAIL,
|
2019-08-15 15:21:00 +01:00
|
|
|
QueueNames.REPORTING,
|
2017-08-22 16:26:07 +01:00
|
|
|
QueueNames.JOBS,
|
|
|
|
|
QueueNames.RETRY,
|
2017-12-08 17:33:13 +00:00
|
|
|
QueueNames.NOTIFY,
|
2017-12-18 16:22:22 +00:00
|
|
|
QueueNames.CALLBACKS,
|
2021-02-04 11:53:22 +00:00
|
|
|
QueueNames.CALLBACKS_RETRY,
|
2020-03-16 16:13:30 +00:00
|
|
|
QueueNames.SMS_CALLBACKS,
|
2020-10-29 11:12:46 +00:00
|
|
|
QueueNames.SAVE_API_EMAIL,
|
2021-01-13 16:19:50 +00:00
|
|
|
QueueNames.SAVE_API_SMS,
|
2017-08-22 16:26:07 +01:00
|
|
|
]) == set(queues)
|