Last updated on 2025-12-04 07:51:45 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| languageserversetup | 3 | 10 | |
| nhlapi | 9 | 2 | 2 |
Current CRAN status: NOTE: 3, OK: 10
Version: 0.1.2
Check: LazyData
Result: NOTE
'LazyData' is specified without a 'data' directory
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Current CRAN status: ERROR: 9, NOTE: 2, OK: 2
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [4s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [9s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.4
Check: tests
Result: ERROR
Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.1.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [6s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.1.4
Check: tests
Result: ERROR
Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-windows-x86_64
Version: 0.1.4
Check: LazyData
Result: NOTE
'LazyData' is specified without a 'data' directory
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
Version: 0.1.4
Check: tests
Result: ERROR
Running 'testthat.R' [7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(nhlapi)
>
> test_check("nhlapi")
Saving _problems/test.nhl_get_data-50.R
Saving _problems/test.nhl_get_data-62.R
Saving _problems/test.nhl_get_data-79.R
Saving _problems/test.nhl_get_data-122.R
Saving _problems/test.nhl_get_data-155.R
Saving _problems/test.nhl_md_endpoints-11.R
Saving _problems/test.nhl_md_endpoints-23.R
Saving _problems/test.nhl_md_endpoints-35.R
Saving _problems/test.nhl_md_endpoints-47.R
Saving _problems/test.nhl_md_endpoints-59.R
Saving _problems/test.nhl_md_endpoints-71.R
Saving _problems/test.nhl_md_endpoints-83.R
Saving _problems/test.nhl_process_results-35.R
Saving _problems/test.nhl_teams_rosters-32.R
Saving _problems/test.nhl_teams_schedule-14.R
Saving _problems/test.nhl_teams_schedule-29.R
Saving _problems/test.nhl_teams_stats-20.R
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
══ Skipped tests (38) ══════════════════════════════════════════════════════════
• On CRAN (37): 'test.nhl_awards.R:5:5', 'test.nhl_conferences.R:5:5',
'test.nhl_divisions.R:5:5', 'test.nhl_draft_prospects.R:5:5',
'test.nhl_drafts.R:5:5', 'test.nhl_games.R:5:5', 'test.nhl_games.R:18:5',
'test.nhl_games.R:31:5', 'test.nhl_games.R:44:5', 'test.nhl_get_data.R:5:5',
'test.nhl_get_data.R:17:5', 'test.nhl_get_data.R:32:5',
'test.nhl_players.R:5:5', 'test.nhl_players_seasons.R:5:5',
'test.nhl_players_seasons.R:21:5', 'test.nhl_players_seasons.R:37:5',
'test.nhl_players_seasons.R:63:5', 'test.nhl_players_seasons.R:83:5',
'test.nhl_players_seasons.R:95:5', 'test.nhl_schedule.R:5:5',
'test.nhl_schedule.R:22:5', 'test.nhl_schedule.R:48:5',
'test.nhl_schedule.R:78:5', 'test.nhl_schedule.R:109:5',
'test.nhl_schedule.R:142:5', 'test.nhl_seasons.R:5:5',
'test.nhl_standings.R:5:5', 'test.nhl_standings.R:28:5',
'test.nhl_standings.R:53:5', 'test.nhl_standings.R:83:5',
'test.nhl_teams.R:5:5', 'test.nhl_teams_rosters.R:5:5',
'test.nhl_tournaments.R:5:5', 'test.nhl_tournaments.R:18:5',
'test.nhl_tournaments.R:31:5', 'test.nhl_utils.R:303:5',
'test.nhl_venues.R:5:5'
• skipSelectedTests is TRUE (1): 'test.nhl_plot_rink.R:16:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test.nhl_get_data.R:47:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:47:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:56:5'): nhl_from_json ───────────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:56:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:68:5'): nhl_from_json retries and fails n times ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:68:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:86:5'): nhl_from_json retries then succeeds ─────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:86:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_get_data.R:133:5'): nhl_from_json no retries for noRetryPatt, only for valid ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. └─testthat::with_mock(...) at test.nhl_get_data.R:133:5
2. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
3. └─lifecycle:::deprecate_stop0(msg)
4. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:5:5'): nhl_md_game_types ────────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:17:5'): nhl_md_game_statuses ────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_game_statuses())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:29:5'): nhl_md_play_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:29:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_play_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:41:5'): nhl_md_tournament_types ─────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:41:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_tournament_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:53:5'): nhl_md_standings_types ──────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:53:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_standings_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:65:5'): nhl_md_stat_types ───────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:65:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_stat_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_md_endpoints.R:77:5'): nhl_md_event_types ──────────────────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_md_endpoints.R:77:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_get_data = mock_identity, nhl_md_event_types())
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_process_results.R:29:5'): Warn but return if failed rbindlist ──
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test.nhl_process_results.R:29:5
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─testthat::with_mock(...)
7. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
8. └─lifecycle:::deprecate_stop0(msg)
9. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_rosters.R:17:5'): Roster for 2 teams and 2 seasons ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_rosters.R:17:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:5:5'): Next match schedule for 2 teams ────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_next(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_schedule.R:20:5'): Next match schedule for 2 teams ───
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_schedule.R:20:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(nhl_teams = mock_return, nhl_teams_shedule_previous(teamIds = 1:2))
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
── Error ('test.nhl_teams_stats.R:5:5'): Statas for 2 teams and 2 seasons ──────
<lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
Error: `with_mock()` was deprecated in testthat 3.2.0 and is now defunct.
ℹ Please use `with_mocked_bindings()` instead.
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test.nhl_teams_stats.R:5:5
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─testthat::with_mock(...)
5. └─lifecycle::deprecate_stop("3.2.0", "with_mock()", "with_mocked_bindings()")
6. └─lifecycle:::deprecate_stop0(msg)
7. └─rlang::cnd_signal(...)
[ FAIL 17 | WARN 0 | SKIP 38 | PASS 147 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.