Skip to content

Commit

Permalink
add rests to kp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saiemgilani committed Apr 3, 2023
1 parent aaa4417 commit 694e271
Show file tree
Hide file tree
Showing 34 changed files with 66 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-kp_arenas.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ test_that("KP - Get arenas", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")
Sys.sleep(2)
Sys.sleep(3)
})
2 changes: 1 addition & 1 deletion tests/testthat/test-kp_box.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ test_that("KP - Get box score", {
expect_equal(colnames(x4), cols_x4)
expect_s3_class(x4, "data.frame")

Sys.sleep(2)
Sys.sleep(3)
})
4 changes: 3 additions & 1 deletion tests/testthat/test-kp_conf.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,7 @@ test_that("KP - Get conference (leaderboard)", {
expect_equal(colnames(x5), cols_x5)
expect_equal(colnames(x6), cols_x6)
expect_equal(colnames(x7), cols_x7)
Sys.sleep(2)

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_confhistory.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ test_that("KP - Get conference history", {

expect_equal(colnames(x), cols)
expect_s3_class(x,"data.frame")

Sys.sleep(3)

})
2 changes: 1 addition & 1 deletion tests/testthat/test-kp_confstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ test_that("KP - Get conference statistics", {
expect_equal(colnames(x), cols)
expect_s3_class(x,"data.frame")

Sys.sleep(2)
Sys.sleep(3)
})
2 changes: 1 addition & 1 deletion tests/testthat/test-kp_efficiency.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ test_that("KP - Get efficiency", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(2)
Sys.sleep(3)

})
4 changes: 3 additions & 1 deletion tests/testthat/test-kp_fanmatch.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ test_that("KP - Get FanMatch", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")
Sys.sleep(2)

Sys.sleep(3)

})
2 changes: 1 addition & 1 deletion tests/testthat/test-kp_foul_trouble.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ test_that("KP - Get foul trouble", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(2)
Sys.sleep(3)

})
2 changes: 1 addition & 1 deletion tests/testthat/test-kp_fourfactors.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ test_that("KP - Get four factors", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(2)
Sys.sleep(3)

})
3 changes: 2 additions & 1 deletion tests/testthat/test-kp_game_attrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ test_that("KP - Get game attributes", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(2)
Sys.sleep(3)

})
4 changes: 3 additions & 1 deletion tests/testthat/test-kp_gameplan.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,7 @@ test_that("KP - Get gameplan", {
expect_equal(colnames(x1), cols_x1)
expect_equal(colnames(x2), cols_x2)
expect_equal(colnames(x3), cols_x3)
Sys.sleep(2)

Sys.sleep(3)

})
3 changes: 2 additions & 1 deletion tests/testthat/test-kp_hca.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ test_that("KP - Get home court advantage", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(2)
Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_height.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ test_that("KP - Get heights", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_kpoy.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@ test_that("KP - Get kpoy", {
)
expect_equal(colnames(x1), cols_x1)
expect_equal(colnames(x2), cols_x2)

Sys.sleep(3)

})
2 changes: 2 additions & 0 deletions tests/testthat/test-kp_minutes_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ test_that("KP - Get minutes matrix", {
expect_equal(colnames(x[(ncol(x) - 2):ncol(x)]), cols_x2)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_officials.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ test_that("KP - Get officials", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
2 changes: 2 additions & 0 deletions tests/testthat/test-kp_opptracker.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ test_that("KP - Get opponent tracker", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_player_career.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ test_that("KP - Get player career", {
expect_equal(colnames(x1), cols_x1)
expect_equal(colnames(x2), cols_x2)

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_playerstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ test_that("KP - Get player stats", {
expect_equal(colnames(x[5:8]), cols_x2)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_pointdist.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ test_that("KP - Get point distribution", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_pomeroy_archive_ratings.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ test_that("KP - Get pomeroy archive ratings", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_pomeroy_ratings.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ test_that("KP - Get Pomeroy ratings", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_program_ratings.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ test_that("KP - Get program ratings", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_referee.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ test_that("KP - Get referee game log", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_team_depth_chart.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ test_that("KP - Get team depth chart", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_team_history.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ test_that("KP - Get team history", {
expect_equal(colnames(y), cols)
expect_s3_class(x, "data.frame")
expect_s3_class(y, "data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_team_lineups.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ test_that("KP - Get team lineups", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_team_player_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ test_that("KP - Get team player stats", {
expect_equal(colnames(x[[1]]), cols)
expect_s3_class(x[[1]], "data.frame")

Sys.sleep(3)

})
2 changes: 2 additions & 0 deletions tests/testthat/test-kp_team_players.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ test_that("KP - Get team players (roster)", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_team_schedule.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ test_that("KP - Get team schedule", {

expect_equal(colnames(x), cols)
expect_s3_class(x,"data.frame")

Sys.sleep(3)

})
1 change: 1 addition & 0 deletions tests/testthat/test-kp_teamstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ test_that("KP - Get team stats", {
expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
3 changes: 3 additions & 0 deletions tests/testthat/test-kp_trends.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ test_that("KP - Get trends", {

expect_equal(colnames(x), cols)
expect_s3_class(x, "data.frame")

Sys.sleep(3)

})
2 changes: 2 additions & 0 deletions tests/testthat/test-kp_winprob.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ test_that("KP - Get win probability", {
expect_equal(colnames(x3), cols_x3)
expect_s3_class(x3, "data.frame")

Sys.sleep(3)

})
4 changes: 3 additions & 1 deletion tests/testthat/test-nba_teams.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ test_that("NBA Teams", {
"team_slug",
"conference",
"division",
"season",
"team_abbreviation",
"team_name_full",
"season",
"team_name_full_2",
"espn_team_id",
"abbreviation",
"display_name",
Expand Down

0 comments on commit 694e271

Please sign in to comment.