diff --git a/tests/app/test_commands.py b/tests/app/test_commands.py index d14b86133..67439c04e 100644 --- a/tests/app/test_commands.py +++ b/tests/app/test_commands.py @@ -194,8 +194,8 @@ def test_populate_organization_agreement_details_from_file( org_count = _get_organization_query_count() assert org_count == 1 - stmt = select(Organization) - orgX = db.session.execute(stmt).one() + + orgX = db.session.execute(select(Organization)).scalar_one() print(f"ORG X = {orgX.agreement_signed_on_behalf_of_name}") org = _get_organization_query_one() print(f"ORG A = {org.agreement_signed_on_behalf_of_name}")