File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -426,8 +426,8 @@ def get_submissions(project_id: str) -> Response[dict]:
426
426
:rtype: dict
427
427
"""
428
428
recent_submissions = get_default_client ().get_project_submissions (project_id )
429
- if recent_submissions .get ("result " ) and len (recent_submissions ["result " ]) > 0 :
430
- return Response (result = recent_submissions ["result " ])
429
+ if recent_submissions .get ("items " ) and len (recent_submissions ["items " ]) > 0 :
430
+ return Response (result = recent_submissions ["items " ])
431
431
432
432
433
433
def get_latest_project_config_recommendation (
Original file line number Diff line number Diff line change 48
48
49
49
@pytest .fixture
50
50
def mock_mixed_submissions ():
51
- yield {"result " : [mock_failed_submission , mock_success_submission ]}
51
+ yield {"items " : [mock_failed_submission , mock_success_submission ]}
52
52
53
53
54
54
@pytest .fixture
55
55
def mock_no_success_submissions ():
56
- yield {"result " : [mock_failed_submission ]}
56
+ yield {"items " : [mock_failed_submission ]}
57
57
58
58
59
59
@pytest .fixture
60
60
def mock_get_submissions_empty ():
61
61
"""Mocks get_submissions function to return an empty list."""
62
- yield {"result " : []}
62
+ yield {"items " : []}
63
63
64
64
65
65
@patch ("sync.clients.sync.SyncClient._send" )
You can’t perform that action at this time.
0 commit comments