From 758e12c901e77e9f0884824ff031e040b0273969 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Mon, 14 Oct 2024 10:55:10 -0700 Subject: [PATCH] fix template folder dao --- tests/app/dao/test_templates_dao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/app/dao/test_templates_dao.py b/tests/app/dao/test_templates_dao.py index 8da454d30..5fe603a64 100644 --- a/tests/app/dao/test_templates_dao.py +++ b/tests/app/dao/test_templates_dao.py @@ -21,12 +21,12 @@ from tests.app.db import create_template def template_query_count(): stmt = select(func.count()).select_from(Template) - return db.session.execute(stmt).scalar or 0 + return db.session.execute(stmt).scalar() or 0 def template_history_query_count(): stmt = select(func.count()).select_from(TemplateHistory) - return db.session.execute(stmt).scalar or 0 + return db.session.execute(stmt).scalar() or 0 @pytest.mark.parametrize(