Skip to content

Commit

Permalink
Adjust tests for end of 2023 season
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiernan Nicholls committed Jan 12, 2024
1 parent 48c2115 commit b1f86e4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 2.2.1
Date: 2024-01-12 20:11:38 UTC
SHA: 8143003625d36d803c54e1b6ea5fa03b8e9de8fb
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: fflr
Title: Retrieve ESPN Fantasy Football Data
Version: 2.2.0.9002
Version: 2.2.1
Authors@R:
person("Kiernan", "Nicholls", , "kiernann@protonmail.com", role = c("aut", "cre", "cph"))
Description: Format the raw data from the ESPN fantasy football API
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# fflr (development version)
# fflr 2.2.1

* Adjust tests for end of NFL season.
* The functions `league_members()` and `league_teams()` have been adjusted to
add new columns. The order of columns has also been rearranged to focus on
the output of each function (all teams or all members), since some teams can
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

## Resubmission

* Fixed broken link to https://kiernann.com/fflr in README
* Updated test to account for end of the 2023 NFL season.
2 changes: 1 addition & 1 deletion tests/testthat/test-best.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test_that("calculate best possible future roster", {
b <- best_roster(
leagueId = "42654852",
useScore = "projectedScore",
scoringPeriodId = ffl_week()
scoringPeriodId = 1
)
b2 <- b[[2]]
expect_s3_class(b2, "data.frame")
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-events.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test_that("get NFL game schedule times", {
e <- pro_events()
expect_s3_class(e, "data.frame")
expect_type(e$competitors, "list")
expect_length(e, 13)
# expect_type(e$competitors, "list")
expect_length(e, 7)
})

test_that("get NFL game scores", {
Expand Down

0 comments on commit b1f86e4

Please sign in to comment.