Skip to content

Commit

Permalink
[#31] Update unit test category by adding conditional gq
Browse files Browse the repository at this point in the history
  • Loading branch information
ifirmawan committed May 9, 2023
1 parent db2f9b5 commit 22cd0f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/backend/tests/test_02_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
refresh_view,
)
from scripts.seeder_datapoint import seed
from AkvoResponseGrouper.db import validate_question_options
from AkvoResponseGrouper.db import validate_question_options, get_questions

pytestmark = pytest.mark.asyncio
sys.path.append("..")
Expand Down Expand Up @@ -47,6 +47,8 @@ async def test_if_question_n_options_exists(
) -> None:
engine = create_engine(get_db_url())
with engine.connect() as connection:
gq = get_questions(connection=connection)
assert len(gq) > 0
ce = validate_question_options(
connection=connection, question=1, form=1, options=["Yes"]
)
Expand Down

0 comments on commit 22cd0f7

Please sign in to comment.