Skip to content

Commit e7c7576

Browse files
committed
re-order tests to fix CI
1 parent c30ee44 commit e7c7576

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

tests/testthat/test-content.R

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -505,43 +505,6 @@ with_mock_dir("2025.09.0", {
505505
)
506506
})
507507

508-
test_that("content search uses default page_size of 500 and page_number of 1", {
509-
without_internet(
510-
expect_GET(
511-
search_content(client, q = "bream"),
512-
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url" #nolint
513-
)
514-
)
515-
})
516-
517-
test_that("content search passes arbitrary parameters through ... to query string", {
518-
without_internet(
519-
expect_GET(
520-
search_content(
521-
client,
522-
q = "bream",
523-
future_param = "value"
524-
),
525-
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url&future_param=value" #nolint
526-
)
527-
)
528-
})
529-
530-
test_that("the inner .search_content() func calls the endpoint correctly", {
531-
without_internet(
532-
expect_GET(
533-
.search_content(
534-
client,
535-
q = "bream",
536-
page_number = 2,
537-
page_size = 20,
538-
include = "owner"
539-
),
540-
"https://connect.example/__api__/v1/search/content?q=bream&page_number=2&page_size=20&include=owner"
541-
)
542-
)
543-
})
544-
545508
test_that("search_content() can be converted to a data frame correctly", {
546509
content_df <- search_content(client, q = "sea bream") |>
547510
as_tibble()
@@ -595,6 +558,43 @@ with_mock_dir("2025.09.0", {
595558
})
596559
})
597560

561+
test_that("content search uses default page_size of 500 and page_number of 1", {
562+
without_internet(
563+
expect_GET(
564+
search_content(client, q = "bream"),
565+
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url" #nolint
566+
)
567+
)
568+
})
569+
570+
test_that("content search passes arbitrary parameters through ... to query string", {
571+
without_internet(
572+
expect_GET(
573+
search_content(
574+
client,
575+
q = "bream",
576+
future_param = "value"
577+
),
578+
"https://connect.example/__api__/v1/search/content?q=bream&page_number=1&page_size=500&include=owner%2Cvanity_url&future_param=value" #nolint
579+
)
580+
)
581+
})
582+
583+
test_that("the inner .search_content() func calls the endpoint correctly", {
584+
without_internet(
585+
expect_GET(
586+
.search_content(
587+
client,
588+
q = "bream",
589+
page_number = 2,
590+
page_size = 20,
591+
include = "owner"
592+
),
593+
"https://connect.example/__api__/v1/search/content?q=bream&page_number=2&page_size=20&include=owner"
594+
)
595+
)
596+
})
597+
598598
test_that("content search errors on Connect < 2024.04.0", {
599599
client <- MockConnect$new("2024.04.0")
600600
client$mock_response(

0 commit comments

Comments
 (0)