From 82710c25013fb195958e5f3fec38bf3dceee949d Mon Sep 17 00:00:00 2001 From: Kennedy Karoko Date: Wed, 19 Nov 2025 23:11:12 +0300 Subject: [PATCH] test: update test to expect empty PHYSICAL EXAMINATION values when path_config is not provided The new PHYSICAL EXAMINATION filtering correctly removes fields when they're not specified in path_config, so the test should expect empty arrays for those fields. --- tests/cases/controller/case_controller_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/cases/controller/case_controller_test.py b/tests/cases/controller/case_controller_test.py index 66a0387..48dbea0 100644 --- a/tests/cases/controller/case_controller_test.py +++ b/tests/cases/controller/case_controller_test.py @@ -55,8 +55,12 @@ def test_get_case_review(client, session, mocker): expected = expected_json() expected["details"][0]["values"][1]["values"] = [] expected["details"][0]["values"][2]["values"] = [] + + # PHYSICAL EXAMINATION fields should be empty when path_config doesn't specify them + expected["details"][2]["values"][0]["values"] = [] + expected["details"][2]["values"][1]["values"] = [] - # when CSV doesn’t reference any RISK ASSESSMENT, importantInfos should be empty + # when CSV doesn't reference any RISK ASSESSMENT, importantInfos should be empty expected["importantInfos"] = [] assert data == expected