Skip to content

Commit f0984c4

Browse files
committed
tests: fix test_score_execution json reading error
1 parent 000d123 commit f0984c4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/unit/test_score_execution.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,9 @@ def test_create_score_execution():
7676
se.create_score_execution(
7777
score_definition_id="12345"
7878
)
79-
80-
mock_response = MagicMock()
81-
mock_response.status_code = 200
82-
mock_response.json.return_value = {"count": 1}
83-
list_executions.return_value = mock_response
79+
80+
list_executions.status_code = 200
81+
list_executions.return_value.json.return_value = {"count": 1}
8482

8583
delete_execution.return_value.status_code = 404
8684
with pytest.raises(HTTPError):
@@ -93,8 +91,6 @@ def test_create_score_execution():
9391
# score_definition_id="12345"
9492
# )
9593
# assert response
96-
97-
test_create_score_execution()
9894

9995
#pytest.skip()
10096
# raise HTTP error?

0 commit comments

Comments
 (0)