File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,20 @@ def test_missing_fields(self):
84
84
85
85
class TestGetSprint (JiraSelectFunctionTestCase ):
86
86
def test_basic (self ):
87
+ arbitrary_sprint_data = {"x" : True }
87
88
arbitrary_sprint_id = 10
88
- arbitrary_sprint_object = Mock (raw = {} )
89
+ arbitrary_sprint_object = Mock (raw = arbitrary_sprint_data )
89
90
90
91
mock_jira = Mock (
91
92
sprint = Mock (return_value = arbitrary_sprint_object ),
92
93
_options = {"agile_rest_path" : "/" },
93
94
)
94
95
95
- self .execute_function ("get_sprint_by_id" , arbitrary_sprint_id , jira = mock_jira )
96
+ result = self .execute_function (
97
+ "get_sprint_by_id" , arbitrary_sprint_id , jira = mock_jira
98
+ )
96
99
97
- assert mock_jira . sprint . assert_called_with ( arbitrary_sprint_id )
100
+ assert result . raw == arbitrary_sprint_data
98
101
99
102
100
103
class TestFieldByName (JiraSelectFunctionTestCase ):
You can’t perform that action at this time.
0 commit comments