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()
|
2024-08-09 09:11:28 -07:00
|
|
|
assert len(queues) == 14
|
2023-08-29 14:54:30 -07:00
|
|
|
assert set(
|
|
|
|
|
[
|
|
|
|
|
QueueNames.PERIODIC,
|
|
|
|
|
QueueNames.DATABASE,
|
|
|
|
|
QueueNames.SEND_SMS,
|
|
|
|
|
QueueNames.CHECK_SMS,
|
|
|
|
|
QueueNames.SEND_EMAIL,
|
|
|
|
|
QueueNames.REPORTING,
|
|
|
|
|
QueueNames.JOBS,
|
|
|
|
|
QueueNames.RETRY,
|
|
|
|
|
QueueNames.NOTIFY,
|
|
|
|
|
QueueNames.CALLBACKS,
|
|
|
|
|
QueueNames.CALLBACKS_RETRY,
|
|
|
|
|
QueueNames.SMS_CALLBACKS,
|
|
|
|
|
QueueNames.SAVE_API_EMAIL,
|
|
|
|
|
QueueNames.SAVE_API_SMS,
|
|
|
|
|
]
|
|
|
|
|
) == set(queues)
|