From 21c943484d0d5ad7ac48b0626ba33820c20d1b62 Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Fri, 13 May 2022 08:58:52 +0100 Subject: [PATCH] Change test that was failing due to new Marshmallow behaviour Boolean fields in marshmallow have various values that get changed to True or False. The value 'Yes' now gets changed to True, which was causing a test to start failing. We could change the schemas to stop 'Yes' from being changed to True, but the data for boolean fields comes from admin, where it is only allowed to have certain values anyway so this just fixes the test. --- tests/app/service/test_rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/service/test_rest.py b/tests/app/service/test_rest.py index ba61fea32..b8bcd126e 100644 --- a/tests/app/service/test_rest.py +++ b/tests/app/service/test_rest.py @@ -887,7 +887,7 @@ def test_update_service_sets_volumes( @pytest.mark.parametrize('value, expected_status, expected_persisted', ( (True, 200, True), (False, 200, False), - ('Yes', 400, None), + ('unknown', 400, None), )) def test_update_service_sets_research_consent( admin_request,