@@ -1378,6 +1378,33 @@ func TestRepositoriesService_UpdateRequiredStatusChecks(t *testing.T) {
1378
1378
})
1379
1379
}
1380
1380
1381
+ func TestRepositoriesService_RemoveRequiredStatusChecks (t * testing.T ) {
1382
+ client , mux , _ , teardown := setup ()
1383
+ defer teardown ()
1384
+
1385
+ mux .HandleFunc ("/repos/o/r/branches/b/protection/required_status_checks" , func (w http.ResponseWriter , r * http.Request ) {
1386
+ testMethod (t , r , "DELETE" )
1387
+ testHeader (t , r , "Accept" , mediaTypeV3 )
1388
+ w .WriteHeader (http .StatusNoContent )
1389
+ })
1390
+
1391
+ ctx := context .Background ()
1392
+ _ , err := client .Repositories .RemoveRequiredStatusChecks (ctx , "o" , "r" , "b" )
1393
+ if err != nil {
1394
+ t .Errorf ("Repositories.RemoveRequiredStatusChecks returned error: %v" , err )
1395
+ }
1396
+
1397
+ const methodName = "RemoveRequiredStatusChecks"
1398
+ testBadOptions (t , methodName , func () (err error ) {
1399
+ _ , err = client .Repositories .RemoveRequiredStatusChecks (ctx , "\n " , "\n " , "\n " )
1400
+ return err
1401
+ })
1402
+
1403
+ testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
1404
+ return client .Repositories .RemoveRequiredStatusChecks (ctx , "o" , "r" , "b" )
1405
+ })
1406
+ }
1407
+
1381
1408
func TestRepositoriesService_ListRequiredStatusChecksContexts (t * testing.T ) {
1382
1409
client , mux , _ , teardown := setup ()
1383
1410
defer teardown ()
0 commit comments