Skip to content

Commit

Permalink
chore: update test to better reflect function behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
djm21 committed Jan 9, 2025
1 parent bb6fbff commit 2db3ce9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/unit/test_score_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2db3ce9

Please sign in to comment.