@@ -327,34 +327,34 @@ test_that("find_pets_by_status", {
327327 expect_equal(result $ ApiException $ reason , " Invalid value for `status` when calling PetApi$find_pets_by_status. Must be [available, pending, sold]." )
328328})
329329
330- test_that(" find_pets_by_tags" , {
331- pet_tag_test <- Pet $ new(" name_test" ,
332- photoUrls = list (" photo_test" , " second test" ),
333- category = Category $ new(id = 4455 , name = " test_cat" ),
334- id = 4455 ,
335- tags = list (
336- Tag $ new(id = 4455 , name = " tag_test" ), Tag $ new(id = 488 , name = " unknown 2" )
337- ),
338- status = " available"
339- )
340- result <- pet_api $ add_pet(pet_tag_test )
341-
342- # vector as input
343- var_tags <- c(" unknown" , " unknown 2" ) # array[character] | Tags to filter by
344- result <- pet_api $ find_pets_by_tags(var_tags )
345- expect_true(! is.null(result ))
346- expect_equal(result [[1 ]]$ id , 123321 )
347- expect_equal(result [[2 ]]$ id , 123999 )
348- expect_equal(result [[3 ]]$ id , 4455 )
349-
350- # list as input
351- var_tags <- list (" unknown" , " unknown 2" ) # array[character] | Tags to filter by
352- result <- pet_api $ find_pets_by_tags(var_tags )
353- expect_true(! is.null(result ))
354- expect_equal(result [[1 ]]$ id , 123321 )
355- expect_equal(result [[2 ]]$ id , 123999 )
356- expect_equal(result [[3 ]]$ id , 4455 )
357- })
330+ # test_that("find_pets_by_tags", {
331+ # pet_tag_test <- Pet$new("name_test",
332+ # photoUrls = list("photo_test", "second test"),
333+ # category = Category$new(id = 4455, name = "test_cat"),
334+ # id = 4455,
335+ # tags = list(
336+ # Tag$new(id = 4455, name = "tag_test"), Tag$new(id = 488, name = "unknown 2")
337+ # ),
338+ # status = "available"
339+ # )
340+ # result <- pet_api$add_pet(pet_tag_test)
341+ #
342+ # # vector as input
343+ # var_tags <- c("unknown", "unknown 2") # array[character] | Tags to filter by
344+ # result <- pet_api$find_pets_by_tags(var_tags)
345+ # expect_true(!is.null(result))
346+ # expect_equal(result[[1]]$id, 123321)
347+ # expect_equal(result[[2]]$id, 123999)
348+ # expect_equal(result[[3]]$id, 4455)
349+ #
350+ # # list as input
351+ # var_tags <- list("unknown", "unknown 2") # array[character] | Tags to filter by
352+ # result <- pet_api$find_pets_by_tags(var_tags)
353+ # expect_true(!is.null(result))
354+ # expect_equal(result[[1]]$id, 123321)
355+ # expect_equal(result[[2]]$id, 123999)
356+ # expect_equal(result[[3]]$id, 4455)
357+ # })
358358
359359test_that(" Tests allOf" , {
360360 # test allOf without discriminator
0 commit comments