We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 000d123 commit f0984c4Copy full SHA for f0984c4
tests/unit/test_score_execution.py
@@ -76,11 +76,9 @@ def test_create_score_execution():
76
se.create_score_execution(
77
score_definition_id="12345"
78
)
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
+
+ list_executions.status_code = 200
+ list_executions.return_value.json.return_value = {"count": 1}
84
85
delete_execution.return_value.status_code = 404
86
with pytest.raises(HTTPError):
@@ -93,8 +91,6 @@ def test_create_score_execution():
93
91
# score_definition_id="12345"
94
92
# )
95
# assert response
96
97
-test_create_score_execution()
98
99
#pytest.skip()
100
# raise HTTP error?
0 commit comments