From 2db3ce91e3094e76ac55c01ec2f732b787e0191e Mon Sep 17 00:00:00 2001 From: djm21 Date: Thu, 9 Jan 2025 10:59:22 -0800 Subject: [PATCH] chore: update test to better reflect function behavior --- tests/unit/test_score_definitions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/unit/test_score_definitions.py b/tests/unit/test_score_definitions.py index 2ccebf66..d1210866 100644 --- a/tests/unit/test_score_definitions.py +++ b/tests/unit/test_score_definitions.py @@ -66,14 +66,13 @@ def test_create_score_definition(): "sasctl._services.score_definitions.ScoreDefinitions.post" ) as post: # Invalid model id test case - get_model.side_effect = HTTPError("No Model Found") + get_model.return_value = None with pytest.raises(HTTPError): sd.create_score_definition( score_def_name="test_create_sd", model="12345", table_name="test_table", ) - get_model.side_effect = None # Valid model id but invalid table name with no table_file argument test case get_model_mock = { "id": "12345",