Merge pull request #364 from arc53/bug/fix-test

Fix broken test
This commit is contained in:
Alex
2023-10-01 21:45:31 +01:00
committed by GitHub

View File

@@ -12,6 +12,10 @@ def test_make_celery(mock_celery):
celery = make_celery(app_name) celery = make_celery(app_name)
# Assert # Assert
mock_celery.assert_called_once_with(app_name, broker=settings.CELERY_BROKER_URL) mock_celery.assert_called_once_with(
app_name,
broker=settings.CELERY_BROKER_URL,
backend=settings.CELERY_RESULT_BACKEND
)
celery.conf.update.assert_called_once_with(settings) celery.conf.update.assert_called_once_with(settings)
assert celery == mock_celery.return_value assert celery == mock_celery.return_value