From 7f94232f4e2f4b019cf43f297a67cf4068ad284e Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 3 May 2022 10:14:35 +0100 Subject: [PATCH] Clean up old text message price MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that the new price is in effect, we don’t need to check the date to see which price should be displayed to the user. --- app/main/views/pricing.py | 2 -- tests/app/main/views/test_index.py | 1 - 2 files changed, 3 deletions(-) diff --git a/app/main/views/pricing.py b/app/main/views/pricing.py index 3b7af1d12..5c6fab52f 100644 --- a/app/main/views/pricing.py +++ b/app/main/views/pricing.py @@ -13,8 +13,6 @@ from app.main.views.sub_navigation_dictionaries import pricing_nav def get_current_sms_rate(): - if convert_utc_to_bst(datetime.utcnow()) < convert_utc_to_bst(datetime(2022, 5, 1)): - return '1.61' return '1.72' diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py index e31ba38a8..3827d54c8 100644 --- a/tests/app/main/views/test_index.py +++ b/tests/app/main/views/test_index.py @@ -359,7 +359,6 @@ def test_font_preload( @pytest.mark.parametrize('current_date, expected_rate', ( - ('2022-04-30', '1.61'), ('2022-05-01', '1.72'), )) def test_sms_price(