From 80965e4651294248bfe5c789a2d82d7726fe87b9 Mon Sep 17 00:00:00 2001 From: Martyn Inglis Date: Wed, 5 Apr 2017 16:50:32 +0100 Subject: [PATCH] Good spot by Leo on has_calls not being exclusive, Using call_args_list to get accurate list of args --- tests/app/celery/test_scheduled_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/celery/test_scheduled_tasks.py b/tests/app/celery/test_scheduled_tasks.py index b534e7df0..cbec1e43c 100644 --- a/tests/app/celery/test_scheduled_tasks.py +++ b/tests/app/celery/test_scheduled_tasks.py @@ -215,7 +215,7 @@ def test_will_remove_csv_files_for_jobs_older_than_seven_days(notify_db, notify_ with freeze_time('2016-10-18T10:00:00'): remove_csv_files() - s3.remove_job_from_s3.assert_has_calls([call(job_1.service_id, job_1.id), call(job_2.service_id, job_2.id)]) + assert s3.remove_job_from_s3.call_args_list == [call(job_1.service_id, job_1.id), call(job_2.service_id, job_2.id)] def test_send_daily_performance_stats_calls_does_not_send_if_inactive(