Skip to content

Commit

Permalink
Fix the settings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
k5cents committed Feb 3, 2024
1 parent b1f86e4 commit 6ae8a39
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 2.2.1
Date: 2024-01-12 20:11:38 UTC
SHA: 8143003625d36d803c54e1b6ea5fa03b8e9de8fb
Version: 2.2.2
Date: 2024-02-03 02:40:04 UTC
SHA: 63cc25be23288fe04f7c953f8cbdcc459303fea4
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.1
Version: 2.2.2
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
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# fflr 2.2.2

* Adjust more tests for the end of the NFL season and changes to API.

# fflr 2.2.1

* Adjust tests for end of NFL season.
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

* Updated test to account for end of the 2023 NFL season.
* Updated more tests.
4 changes: 2 additions & 2 deletions tests/testthat/test-settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Sys.sleep(runif(1, 1, 2))
test_that("acquisition settings for a single season", {
w <- acquisition_settings("42654852", leagueHistory = FALSE)
expect_s3_class(w, "data.frame")
expect_length(w, 10)
expect_length(w, 12)
expect_type(w$acquisitionBudget, "integer")
expect_type(w$waiverProcessDays, "list")
expect_type(w$waiverOrderReset, "logical")
Expand Down Expand Up @@ -80,7 +80,7 @@ Sys.sleep(runif(1, 1, 2))
test_that("schedule settings for a single season", {
s <- schedule_settings("42654852", leagueHistory = FALSE)
expect_s3_class(s, "data.frame")
expect_length(s, 10)
expect_length(s, 12)
expect_s3_class(s$matchupPeriods[[1]], "data.frame")
expect_s3_class(s$divisions[[1]], "data.frame")
})
Expand Down

0 comments on commit 6ae8a39

Please sign in to comment.