@@ -13,7 +13,13 @@ def test_send_create_report_request_200(mocker):
1313 return_value = mocker .MagicMock (status_code = 200 ),
1414 )
1515 res = send_create_report_request (
16- "commit_sha" , "code" , "github" , uuid .uuid4 (), "slug" , "enterprise_url"
16+ "commit_sha" ,
17+ "code" ,
18+ "github" ,
19+ uuid .uuid4 (),
20+ "owner::::repo" ,
21+ "enterprise_url" ,
22+ 1 ,
1723 )
1824 assert res .error is None
1925 assert res .warnings == []
@@ -26,7 +32,7 @@ def test_send_create_report_request_403(mocker):
2632 return_value = mocker .MagicMock (status_code = 403 , text = "Permission denied" ),
2733 )
2834 res = send_create_report_request (
29- "commit_sha" , "code" , "github" , uuid .uuid4 (), "slug " , None
35+ "commit_sha" , "code" , "github" , uuid .uuid4 (), "owner::::repo " , None , 1
3036 )
3137 assert res .error == RequestError (
3238 code = "HTTP Error 403" ,
@@ -55,6 +61,7 @@ def test_create_report_command_with_warnings(mocker):
5561 service = "github" ,
5662 token = "token" ,
5763 enterprise_url = None ,
64+ pull_request_number = 1 ,
5865 )
5966
6067 out_bytes = parse_outstreams_into_log_lines (outstreams [0 ].getvalue ())
@@ -70,7 +77,7 @@ def test_create_report_command_with_warnings(mocker):
7077 text = "" ,
7178 )
7279 mocked_send_request .assert_called_with (
73- "commit_sha" , "code" , "github" , "token" , "owner::::repo" , None
80+ "commit_sha" , "code" , "github" , "token" , "owner::::repo" , None , 1
7481 )
7582
7683
@@ -96,6 +103,7 @@ def test_create_report_command_with_error(mocker):
96103 slug = "owner/repo" ,
97104 service = "github" ,
98105 token = "token" ,
106+ pull_request_number = 1 ,
99107 enterprise_url = "enterprise_url" ,
100108 )
101109
@@ -115,5 +123,5 @@ def test_create_report_command_with_error(mocker):
115123 warnings = [],
116124 )
117125 mock_send_report_data .assert_called_with (
118- "commit_sha" , "code" , "github" , "token" , "owner::::repo" , "enterprise_url"
126+ "commit_sha" , "code" , "github" , "token" , "owner::::repo" , "enterprise_url" , 1
119127 )
0 commit comments