Skip to content

Commit

Permalink
Merge branch 'cansavvy/check-urls' into cansavvy/check-spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Dec 20, 2024
2 parents 86c0344 + 1953e53 commit 7fe2f39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-check-urls.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test_that("Test URL checks for OTTR main", {
rmd_dir <- setup_ottr_template(type = "rmd", render = FALSE)

status <- check_urls(rmd_dir)
testthat::expect_true(status == 0)
testthat::expect_true(status < 2)

# Make sure the report exists
testthat::expect_true(file.exists(file.path(rmd_dir, output_file)))
Expand All @@ -22,7 +22,7 @@ test_that("Test URL checks for OTTR Quarto main", {
qmd_dir <- setup_ottr_template(type = "quarto", render = FALSE)

status <- check_urls(qmd_dir)
testthat::expect_true(status == 0)
testthat::expect_true(status < 2)

# Make sure the report exists
testthat::expect_true(file.exists(file.path(qmd_dir, output_file)))
Expand All @@ -37,7 +37,7 @@ test_that("Test URL checks for OTTR web", {
rmd_web <- setup_ottr_template(type = "rmd_website", render = FALSE)

status <- check_urls(rmd_web, report_all = TRUE)
testthat::expect_true(status == 0)
testthat::expect_true(status < 2)

# Make sure the report exists
testthat::expect_true(file.exists(file.path(rmd_web, output_file)))
Expand All @@ -53,7 +53,7 @@ test_that("Test URL checks for OTTR Quarto web", {
qmd_web <- setup_ottr_template(type = "quarto_website", render = FALSE)

status <- check_urls(qmd_web, report_all = TRUE)
testthat::expect_true(status == 0)
testthat::expect_true(status < 2)

# Make sure the report exists
testthat::expect_true(file.exists(file.path(qmd_web, output_file)))
Expand Down

0 comments on commit 7fe2f39

Please sign in to comment.