Skip to content

Commit da356a8

Browse files
committed
fix tests against updated repometrics code
1 parent fc39f09 commit da356a8

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: orgmetrics
22
Title: Metrics for Your GitHub Organization
3-
Version: 0.0.2.002
3+
Version: 0.0.2.003
44
Authors@R:
55
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/orgmetrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/orgmetrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.0.2.002",
11+
"version": "0.0.2.003",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

tests/testthat/gh_user_commits/api.github.com/graphql-65e3f5-POST.json tests/testthat/gh_user_commits/api.github.com/graphql-c6a8c7-POST.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"user": {
44
"login": "mpadge",
55
"contributionsCollection": {
6-
"startedAt": "2023-01-01T08:00:00Z",
6+
"startedAt": "2022-12-31T08:00:00Z",
77
"endedAt": "2024-01-01T08:00:00Z",
88
"totalCommitContributions": 3188,
99
"commitContributionsByRepository": [

tests/testthat/gh_user_issues/api.github.com/graphql-1096dc-POST.json tests/testthat/gh_user_issues/api.github.com/graphql-874100-POST.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"user": {
44
"login": "mpadge",
55
"contributionsCollection": {
6-
"startedAt": "2023-01-01T08:00:00Z",
6+
"startedAt": "2022-12-31T08:00:00Z",
77
"endedAt": "2024-01-01T08:00:00Z",
88
"issueContributions": {
99
"pageInfo": {

tests/testthat/helper-rm-data.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ mock_rm_data <- function (repo = TRUE) {
9595

9696
# rm-data-user:
9797
login <- "mpadge"
98-
ended_at <- as.POSIXct ("2024-01-01T00:00:00")
98+
end_date <- as.Date ("2024-01-01")
9999
pars <- list (
100100
login = login,
101101
n_per_page = 1,
102-
ended_at = ended_at,
102+
end_date = end_date,
103103
nyears = 1
104104
)
105105
general <- httptest2::with_mock_dir ("gh_user_general", {
@@ -146,7 +146,7 @@ mock_rm_data <- function (repo = TRUE) {
146146
pars <- list (
147147
login = login,
148148
n_per_page = 1,
149-
ended_at = ended_at,
149+
end_date = end_date,
150150
nyears = 1
151151
)
152152

tests/testthat/helper-user-relations.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mock_user_rel_data <- function () {
4646
date = rep (timestamp, 2L)
4747
)
4848
attr (commit_cmt, "started_at") <- timestamp_minus_year
49-
attr (commit_cmt, "ended_at") <- timestamp
49+
attr (commit_cmt, "end_date") <- timestamp
5050

5151
issues <- data.frame (
5252
opened_at = rep (timestamp, 2L),
@@ -59,7 +59,7 @@ mock_user_rel_data <- function () {
5959
repo_languages = I (c ("R", "C"))
6060
)
6161
attr (issues, "started_at") <- timestamp_minus_year
62-
attr (issues, "ended_at") <- timestamp
62+
attr (issues, "end_date") <- timestamp
6363

6464
issue_cmts <- data.frame (
6565
org_repo = commits$repo,

0 commit comments

Comments
 (0)