From a8d2416c3c8262adaab20e9404a53912b7c57a3b Mon Sep 17 00:00:00 2001 From: mpadge Date: Fri, 28 Jun 2024 12:42:10 +0200 Subject: [PATCH] fix tests: now only 5 stats editors --- DESCRIPTION | 2 +- codemeta.json | 2 +- tests/testthat/test-editors.R | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 93da0c6..3bccb95 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: dashboard Title: What the Package Does (One Line, Title Case) -Version: 0.2.2.028 +Version: 0.2.2.029 Authors@R: person(given = "First", family = "Last", diff --git a/codemeta.json b/codemeta.json index 86f7163..114bbc9 100644 --- a/codemeta.json +++ b/codemeta.json @@ -6,7 +6,7 @@ "name": "dashboard: What the Package Does (One Line, Title Case)", "codeRepository": "https://github.com/ropensci-review-tools/dashboard", "license": "https://spdx.org/licenses/MIT", - "version": "0.2.2.028", + "version": "0.2.2.029", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", diff --git a/tests/testthat/test-editors.R b/tests/testthat/test-editors.R index 9877574..c810177 100644 --- a/tests/testthat/test-editors.R +++ b/tests/testthat/test-editors.R @@ -13,11 +13,11 @@ test_that ("editor names", { q <- gh_editors_team_qry (stats = TRUE) editors_stats <- gh::gh_gql (query = q) editors_stats <- editors_stats$data$organization$team$members$nodes - expect_true (length (editors_stats) > 5L) + expect_true (length (editors_stats) >= 5L) expect_true (length (editors_stats) < length (editors)) nms <- unique (unlist (lapply (editors_stats, names))) expect_identical (nms, "login") # should have 'login' only editors_stats <- vapply (editors_stats, function (i) i$login, character (1L)) expect_type (editors_stats, "character") - expect_true (length (editors_stats) > 5L) + expect_true (length (editors_stats) >= 5L) })