@@ -186,7 +186,7 @@ def test_get_pr_details(self, mock_requests_get):
186186 response .status_code = 200
187187 response .json .return_value = {
188188 "body" : "Here comes the details of the PR" ,
189- "labels" : [" test", " BREAKING" ],
189+ "labels" : [{ "name" : " test"}, { "name" : " BREAKING"} ],
190190 }
191191 mock_requests_get .return_value = response
192192 result = get_pr_details (fake_github_config , "someone" , "one-repo" , "1" )
@@ -284,7 +284,7 @@ def test_format_changes_uses_correct_base_url(self):
284284 github_config , "owner" , "a-repo" , prs , markdown = True
285285 )
286286 expected = [
287- "PATCH RELEASE" ,
287+ "MINOR RELEASE" ,
288288 "- first [#1](https://github.company.com/owner/a-repo/pull/1)" ,
289289 "- second [#2](https://github.company.com/owner/a-repo/pull/2)" ,
290290 ]
@@ -412,7 +412,7 @@ def test_generate_changelog(self, mock_requests_get):
412412 get_pr_details_response = mock .MagicMock ()
413413 get_pr_details_response .status_code = 200
414414 get_pr_details_response .json .return_value = {
415- "body" : "My Title #10\n \n CHANGELOG: Specific ChangeLog description " ,
415+ "body" : "My Title #10\n \n CHANGELOG: Specific Changelog " ,
416416 "labels" : [],
417417 }
418418 responses .append (get_pr_details_response )
@@ -452,10 +452,10 @@ def test_generate_changelog(self, mock_requests_get):
452452 self .assertEqual (
453453 result ,
454454 (
455- "PATCH RELEASE\n "
455+ "MINOR RELEASE\n "
456456 "- My Title #5\n "
457457 "- Some title addresses bug #6\n "
458458 "- My Title #9\n "
459- "- Specific ChangeLog description #10"
459+ "- Specific Changelog #10"
460460 ),
461461 )
0 commit comments