From 1a61f06f5331821d49b10b62424bc6df479b7d1d Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Fri, 12 May 2017 12:21:36 +0100 Subject: [PATCH] Removed test as no longer make distinction on status. --- tests/app/celery/test_statistics_tasks.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/app/celery/test_statistics_tasks.py b/tests/app/celery/test_statistics_tasks.py index cdab47b5f..24aaba97d 100644 --- a/tests/app/celery/test_statistics_tasks.py +++ b/tests/app/celery/test_statistics_tasks.py @@ -32,16 +32,6 @@ def test_should_create_intial_job_task_if_notification_is_not_in_completed_state mock.assert_called_once_with((str(notification.id), ), queue="statistics") -@pytest.mark.parametrize('status', NOTIFICATION_STATUS_TYPES_COMPLETED) -def test_should_not_create_initial_job_task_if_notification_in_completed_state_already( - notify_db, notify_db_session, sample_job, mocker, status -): - mock = mocker.patch("app.celery.statistics_tasks.record_initial_job_statistics.apply_async") - notification = sample_notification(notify_db, notify_db_session, job=sample_job, status=status) - create_initial_notification_statistic_tasks(notification) - mock.assert_not_called() - - def test_should_not_create_initial_job_task_if_notification_is_not_related_to_a_job( notify_db, notify_db_session, mocker ):