@@ -283,7 +283,11 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
283
283
284
284
mux .HandleFunc ("/orgs/o/properties/values" , func (w http.ResponseWriter , r * http.Request ) {
285
285
testMethod (t , r , "GET" )
286
- testFormValues (t , r , values {"page" : "1" , "per_page" : "100" })
286
+ testFormValues (t , r , values {
287
+ "page" : "1" ,
288
+ "per_page" : "100" ,
289
+ "repository_query" : "repo:octocat/Hello-World" ,
290
+ })
287
291
fmt .Fprint (w , `[{
288
292
"repository_id": 1296269,
289
293
"repository_name": "Hello-World",
@@ -310,9 +314,12 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
310
314
})
311
315
312
316
ctx := context .Background ()
313
- repoPropertyValues , _ , err := client .Organizations .ListCustomPropertyValues (ctx , "o" , & ListOptions {
314
- Page : 1 ,
315
- PerPage : 100 ,
317
+ repoPropertyValues , _ , err := client .Organizations .ListCustomPropertyValues (ctx , "o" , & ListCustomPropertyValuesOptions {
318
+ ListOptions : ListOptions {
319
+ Page : 1 ,
320
+ PerPage : 100 ,
321
+ },
322
+ RepositoryQuery : "repo:octocat/Hello-World" ,
316
323
})
317
324
if err != nil {
318
325
t .Errorf ("Organizations.ListCustomPropertyValues returned error: %v" , err )
@@ -351,7 +358,7 @@ func TestOrganizationsService_ListCustomPropertyValues(t *testing.T) {
351
358
const methodName = "ListCustomPropertyValues"
352
359
353
360
testBadOptions (t , methodName , func () (err error ) {
354
- _ , _ , err = client .Organizations .ListCustomPropertyValues (ctx , "\n " , & ListOptions {})
361
+ _ , _ , err = client .Organizations .ListCustomPropertyValues (ctx , "\n " , & ListCustomPropertyValuesOptions {})
355
362
return err
356
363
})
357
364
0 commit comments