Skip to content

Commit 6ae8a39

Browse files
committed
Fix the settings tests
1 parent b1f86e4 commit 6ae8a39

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 2.2.1
2-
Date: 2024-01-12 20:11:38 UTC
3-
SHA: 8143003625d36d803c54e1b6ea5fa03b8e9de8fb
1+
Version: 2.2.2
2+
Date: 2024-02-03 02:40:04 UTC
3+
SHA: 63cc25be23288fe04f7c953f8cbdcc459303fea4

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: fflr
22
Title: Retrieve ESPN Fantasy Football Data
3-
Version: 2.2.1
3+
Version: 2.2.2
44
Authors@R:
55
person("Kiernan", "Nicholls", , "kiernann@protonmail.com", role = c("aut", "cre", "cph"))
66
Description: Format the raw data from the ESPN fantasy football API

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# fflr 2.2.2
2+
3+
* Adjust more tests for the end of the NFL season and changes to API.
4+
15
# fflr 2.2.1
26

37
* Adjust tests for end of NFL season.

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
## Resubmission
1616

17-
* Updated test to account for end of the 2023 NFL season.
17+
* Updated more tests.

tests/testthat/test-settings.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Sys.sleep(runif(1, 1, 2))
4242
test_that("acquisition settings for a single season", {
4343
w <- acquisition_settings("42654852", leagueHistory = FALSE)
4444
expect_s3_class(w, "data.frame")
45-
expect_length(w, 10)
45+
expect_length(w, 12)
4646
expect_type(w$acquisitionBudget, "integer")
4747
expect_type(w$waiverProcessDays, "list")
4848
expect_type(w$waiverOrderReset, "logical")
@@ -80,7 +80,7 @@ Sys.sleep(runif(1, 1, 2))
8080
test_that("schedule settings for a single season", {
8181
s <- schedule_settings("42654852", leagueHistory = FALSE)
8282
expect_s3_class(s, "data.frame")
83-
expect_length(s, 10)
83+
expect_length(s, 12)
8484
expect_s3_class(s$matchupPeriods[[1]], "data.frame")
8585
expect_s3_class(s$divisions[[1]], "data.frame")
8686
})

0 commit comments

Comments
 (0)