From 93a3bba9b76d0ae5cb6c3851856f35497c38d9ac Mon Sep 17 00:00:00 2001 From: Kyle MacMillan <16893311+k-macmillan@users.noreply.github.com> Date: Thu, 26 Dec 2024 16:34:06 -0500 Subject: [PATCH] Updated perf number test --- tests/app/celery/test_process_comp_and_pen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/app/celery/test_process_comp_and_pen.py b/tests/app/celery/test_process_comp_and_pen.py index 2209b1984f..f3bf14c45f 100644 --- a/tests/app/celery/test_process_comp_and_pen.py +++ b/tests/app/celery/test_process_comp_and_pen.py @@ -39,7 +39,9 @@ def test_comp_and_pen_batch_process_perf_number_happy_path(mocker, sample_templa {'participant_id': '55', 'payment_amount': '55.56', 'vaprofile_id': '57'}, {'participant_id': '42', 'payment_amount': '42.42', 'vaprofile_id': '43627'}, ] - with patch.dict('os.environ', {'COMP_AND_PEN_PERF_TO_NUMBER': '8675309'}): + with patch.dict( + 'app.celery.process_comp_and_pen.current_app.config', {'COMP_AND_PEN_PERF_TO_NUMBER': '8888675309'} + ): comp_and_pen_batch_process(records) # comp_and_pen_batch_process can fail without raising an exception, so test it called send_notification_to_queue