Skip to content

Commit b1f86e4

Browse files
author
Kiernan Nicholls
committed
Adjust tests for end of 2023 season
1 parent 48c2115 commit b1f86e4

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 2.2.1
2+
Date: 2024-01-12 20:11:38 UTC
3+
SHA: 8143003625d36d803c54e1b6ea5fa03b8e9de8fb

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.0.9002
3+
Version: 2.2.1
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# fflr (development version)
1+
# fflr 2.2.1
22

3+
* Adjust tests for end of NFL season.
34
* The functions `league_members()` and `league_teams()` have been adjusted to
45
add new columns. The order of columns has also been rearranged to focus on
56
the output of each function (all teams or all members), since some teams can

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-
* Fixed broken link to https://kiernann.com/fflr in README
17+
* Updated test to account for end of the 2023 NFL season.

tests/testthat/test-best.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test_that("calculate best possible future roster", {
1717
b <- best_roster(
1818
leagueId = "42654852",
1919
useScore = "projectedScore",
20-
scoringPeriodId = ffl_week()
20+
scoringPeriodId = 1
2121
)
2222
b2 <- b[[2]]
2323
expect_s3_class(b2, "data.frame")

tests/testthat/test-events.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
test_that("get NFL game schedule times", {
22
e <- pro_events()
33
expect_s3_class(e, "data.frame")
4-
expect_type(e$competitors, "list")
5-
expect_length(e, 13)
4+
# expect_type(e$competitors, "list")
5+
expect_length(e, 7)
66
})
77

88
test_that("get NFL game scores", {

0 commit comments

Comments
 (0)