From 873079609a9f910e46b906df2b64481ebd54b133 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 30 Oct 2024 14:52:32 -0700 Subject: [PATCH] revert test to 1.4 --- tests/app/test_commands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/app/test_commands.py b/tests/app/test_commands.py index b4d9033b1..4acb9eedf 100644 --- a/tests/app/test_commands.py +++ b/tests/app/test_commands.py @@ -372,11 +372,10 @@ def test_populate_annual_billing_with_defaults_sets_free_allowance_to_zero_if_pr populate_annual_billing_with_defaults, ["-y", 2022] ) - stmt = select(AnnualBilling).where( + results = AnnualBilling.query.filter( AnnualBilling.financial_year_start == 2022, AnnualBilling.service_id == service.id, - ) - results = db.session.execute(stmt).scalars().all() + ).all() assert len(results) == 1 assert results[0].free_sms_fragment_limit == 0