Skip to content

Commit

Permalink
Merge pull request #110 from ThinkR-open/fix-test-suite-contrib
Browse files Browse the repository at this point in the history
fix: tests suite working for every contributors
  • Loading branch information
statnmap authored Jan 17, 2024
2 parents 02fe9d3 + 62eefc0 commit bd31578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/create_testor_on_gitlab.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set_gitlab_connection(
projects_names <- c("testor.macos", "testor.windows", "testor.release",
"testor.devel", "testor.release.master", "testor.coverage")
# Local - Only the first one is mandatory
projects_names <- c("testor.main", "testor.master")
projects_names <- "testor.main"

# Store all outputs
all_outputs <- list()
Expand Down
4 changes: 1 addition & 3 deletions tests/testthat/test_projects_repos.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ test_that("gl_list_projects work", {
all_user_projects <- gl_list_user_projects(user_id = test_user_id, max_page = 1, order_by = "last_activity_at")

test_that("gl_list_user_projects work", {
some_projects <- paste0("testor.", c("macos", "windows", "release",
"devel", "coverage", "main", "release.master"))
expect_true(all(some_projects %in% all_user_projects[["name"]]))
expect_true(all(test_project_name %in% all_user_projects[["name"]]))
expect_true(all(c("id", "name", "path") %in% names(all_user_projects)))
})

Expand Down

0 comments on commit bd31578

Please sign in to comment.