PyTest
¶
conftest ¶
Pytest top-level conftest.py.
show_log_output ¶
show_log_output()
Turn on/off example code stdout logging output.
Returns: |
|
---|
Source code in test/conftest.py
11 12 13 14 15 16 17 18 19 20 |
|
integration ¶
Pytest integration tests for YFPY.
conftest ¶
Pytest integration test conftest.py.
data_dir ¶
data_dir()
Code tests will output data to this directory.
Source code in test/integration/conftest.py
25 26 27 28 |
|
yahoo_data ¶
yahoo_data(data_dir)
Instantiate yfpy Data object.
Source code in test/integration/conftest.py
31 32 33 34 |
|
yahoo_query ¶
yahoo_query(
league_id, game_code, game_id, browser_callback
)
Instantiate yfpy YahooFantasySportsQuery object and override league key.
Source code in test/integration/conftest.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
browser_callback ¶
browser_callback()
Turn on/off automatic opening of browser window for OAuth.
Source code in test/integration/conftest.py
58 59 60 61 62 |
|
season ¶
season()
Set Yahoo Fantasy Sports season for testing.
Source code in test/integration/conftest.py
65 66 67 68 |
|
chosen_week ¶
chosen_week()
Set Yahoo Fantasy Sports chosen week for testing.
Source code in test/integration/conftest.py
71 72 73 74 |
|
chosen_date ¶
chosen_date()
Set Yahoo Fantasy Sports chosen date for testing.
Source code in test/integration/conftest.py
77 78 79 80 |
|
game_code ¶
game_code()
Set Yahoo Fantasy Sports game code for testing.
Source code in test/integration/conftest.py
83 84 85 86 |
|
game_id ¶
game_id()
Set Yahoo Fantasy Sports game ID for testing.
Source code in test/integration/conftest.py
89 90 91 92 |
|
game_key ¶
game_key()
Set Yahoo Fantasy Sports game key for testing.
Source code in test/integration/conftest.py
95 96 97 98 |
|
league_id ¶
league_id()
Set Yahoo Fantasy Sports league ID for testing.
Source code in test/integration/conftest.py
101 102 103 104 |
|
team_id ¶
team_id()
Set Yahoo Fantasy Sports team ID for testing.
Source code in test/integration/conftest.py
107 108 109 110 |
|
team_name ¶
team_name()
Set Yahoo Fantasy Sports team name for testing.
Source code in test/integration/conftest.py
113 114 115 116 |
|
player_id ¶
player_id()
Create and set Yahoo Fantasy Sports player ID for testing.
Source code in test/integration/conftest.py
119 120 121 122 |
|
player_key ¶
player_key(game_id, player_id)
Create and set Yahoo Fantasy Sports player key for testing.
Source code in test/integration/conftest.py
125 126 127 128 129 130 131 |
|
league_player_limit ¶
league_player_limit()
Set Yahoo Fantasy Sports league player retrieval limit for testing.
Source code in test/integration/conftest.py
134 135 136 137 |
|
test_api_game_data ¶
Pytest integration tests for Yahoo Fantasy Sports API game data.
Note
Tests saving and loading all Yahoo Fantasy Sports API game data.
Attributes: |
|
---|
test_get_all_yahoo_fantasy_game_keys ¶
test_get_all_yahoo_fantasy_game_keys(
yahoo_query,
yahoo_data,
game_code,
game_id,
show_log_output,
)
Integration test for retrieval of all Yahoo fantasy football game keys.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_all_yahoo_fantasy_game_keys
.
Source code in test/integration/test_api_game_data.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
test_get_game_key_by_season ¶
test_get_game_key_by_season(
yahoo_query, season, game_key, show_log_output
)
Integration test for retrieval of specific game key by season.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_key_by_season
.
Source code in test/integration/test_api_game_data.py
57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
test_get_current_game_info ¶
test_get_current_game_info(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of game info for current fantasy season.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_current_game_info
.
Source code in test/integration/test_api_game_data.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
test_get_current_game_metadata ¶
test_get_current_game_metadata(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of game metadata for current fantasy season.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_current_game_metadata
.
Source code in test/integration/test_api_game_data.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
|
test_get_game_info_by_game_id ¶
test_get_game_info_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of game info for specific game by id.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_info_by_game_id
.
Source code in test/integration/test_api_game_data.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
|
test_get_game_metadata_by_game_id ¶
test_get_game_metadata_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of game metadata for specific game by id.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_metadata_by_game_id
.
Source code in test/integration/test_api_game_data.py
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
test_get_league_key ¶
test_get_league_key(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of league key for selected league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_key
.
Source code in test/integration/test_api_game_data.py
184 185 186 187 188 189 190 191 192 193 194 195 196 |
|
test_get_game_weeks_by_game_id ¶
test_get_game_weeks_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of all valid weeks of a specific game by id.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_weeks_by_game_id
.
Source code in test/integration/test_api_game_data.py
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
|
test_get_game_stat_categories_by_game_id ¶
test_get_game_stat_categories_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of all valid stat categories of a specific game by id.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_stat_categories_by_game_id
.
Source code in test/integration/test_api_game_data.py
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
|
test_get_game_position_types_by_game_id ¶
test_get_game_position_types_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of all valid position types for specific game by id.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_position_types_by_game_id
.
Source code in test/integration/test_api_game_data.py
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
|
test_get_game_roster_positions_by_game_id ¶
test_get_game_roster_positions_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of all valid roster positions for specific game by id.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_game_roster_positions_by_game_id
.
Source code in test/integration/test_api_game_data.py
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 |
|
test_api_league_data ¶
Pytest integration tests for Yahoo Fantasy Sports API league data.
Note
Tests saving and loading all Yahoo Fantasy Sports API league data.
Attributes: |
|
---|
test_get_league_info ¶
test_get_league_info(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of info for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_info
.
Source code in test/integration/test_api_league_data.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
test_get_league_metadata ¶
test_get_league_metadata(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of metadata for chosen Yahoo fantasy league..
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_metadata
.
Source code in test/integration/test_api_league_data.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
test_get_league_settings ¶
test_get_league_settings(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of settings for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_settings
.
Source code in test/integration/test_api_league_data.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
test_get_league_standings ¶
test_get_league_standings(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of standings for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_standings
.
Source code in test/integration/test_api_league_data.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
test_get_league_teams ¶
test_get_league_teams(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of all teams in chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_teams
.
Source code in test/integration/test_api_league_data.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
test_get_league_players ¶
test_get_league_players(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of players in chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_players
.
Source code in test/integration/test_api_league_data.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
|
test_get_league_players_with_limit ¶
test_get_league_players_with_limit(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
league_player_limit,
show_log_output,
)
Integration test for retrieval of a specified maximum of players in chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_players
.
Source code in test/integration/test_api_league_data.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
|
test_get_league_draft_results ¶
test_get_league_draft_results(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of draft results for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_draft_results
.
Source code in test/integration/test_api_league_data.py
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
|
test_get_league_transactions ¶
test_get_league_transactions(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of transactions for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_transactions
.
Source code in test/integration/test_api_league_data.py
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|
test_get_league_scoreboard_by_week ¶
test_get_league_scoreboard_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of scoreboard by week for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_scoreboard_by_week
.
Source code in test/integration/test_api_league_data.py
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
|
test_get_league_matchups_by_week ¶
test_get_league_matchups_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
show_log_output,
)
Integration test for retrieval of matchups by week for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_league_matchups_by_week
.
Source code in test/integration/test_api_league_data.py
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
|
test_api_player_data ¶
Pytest integration tests for Yahoo Fantasy Sports API player data.
Note
Tests saving and loading all Yahoo Fantasy Sports API player data.
Attributes: |
|
---|
test_get_player_stats_for_season ¶
test_get_player_stats_for_season(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
player_id,
player_key,
show_log_output,
)
Integration test for retrieval of player stats by season for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_player_stats_for_season
.
Source code in test/integration/test_api_player_data.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
test_get_player_stats_by_week ¶
test_get_player_stats_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
player_id,
player_key,
show_log_output,
)
Integration test for retrieval of player stats by week for chosen Yahoo fantasy league..
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_player_stats_by_week
.
Source code in test/integration/test_api_player_data.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
test_get_player_stats_by_date ¶
test_get_player_stats_by_date(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_date,
game_id,
league_id,
player_id,
player_key,
show_log_output,
)
Integration test for retrieval of player stats by date for Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_player_stats_by_date
.
Source code in test/integration/test_api_player_data.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
test_get_player_ownership ¶
test_get_player_ownership(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
player_id,
player_key,
show_log_output,
)
Integration test for retrieval of ownership of chosen player for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_player_ownership
.
Source code in test/integration/test_api_player_data.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
|
test_get_player_percent_owned_by_week ¶
test_get_player_percent_owned_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
player_id,
player_key,
show_log_output,
)
Integration test for retrieval of percent ownership by week of chosen player for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_player_percent_owned_by_week
.
Source code in test/integration/test_api_player_data.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
|
test_get_player_draft_analysis ¶
test_get_player_draft_analysis(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
player_id,
player_key,
show_log_output,
)
Integration test for retrieval of player draft analysis of chosen player for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_player_draft_analysis
.
Source code in test/integration/test_api_player_data.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
|
test_api_team_data ¶
Pytest integration tests for Yahoo Fantasy Sports API team data.
Note
Tests saving and loading all Yahoo Fantasy Sports API team data.
Attributes: |
|
---|
test_get_team_info ¶
test_get_team_info(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of info for chosen team by team ID for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_info
.
Source code in test/integration/test_api_team_data.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
|
test_get_team_metadata ¶
test_get_team_metadata(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of metadata for chosen team by team ID for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_metadata
.
Source code in test/integration/test_api_team_data.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
|
test_get_team_stats ¶
test_get_team_stats(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of stats for chosen team by team ID for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_stats
.
Source code in test/integration/test_api_team_data.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|
test_get_team_stats_by_week ¶
test_get_team_stats_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of stats for chosen team by team ID and by week for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_stats_by_week
.
Source code in test/integration/test_api_team_data.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
test_get_team_standings ¶
test_get_team_standings(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of standings for chosen team by team ID for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_standings
.
Source code in test/integration/test_api_team_data.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
|
test_get_team_roster_by_week ¶
test_get_team_roster_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of roster for chosen team by team ID and by week for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_roster_by_week
.
Source code in test/integration/test_api_team_data.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
test_get_team_roster_player_info_by_week ¶
test_get_team_roster_player_info_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of roster with player info for chosen team by team ID and by week for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_roster_player_info_by_week
.
Source code in test/integration/test_api_team_data.py
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
|
test_get_team_roster_player_info_by_date ¶
test_get_team_roster_player_info_by_date(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_date,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of roster with player info for chosen team by team ID and by date for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_roster_player_info_by_date
.
Source code in test/integration/test_api_team_data.py
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
test_get_team_roster_player_stats ¶
test_get_team_roster_player_stats(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of roster with player info for chosen team by team ID and for chosen season for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_roster_player_stats
.
Source code in test/integration/test_api_team_data.py
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 |
|
test_get_team_roster_player_stats_by_week ¶
test_get_team_roster_player_stats_by_week(
yahoo_query,
yahoo_data,
data_dir,
season,
chosen_week,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of roster with player info for chosen team by team ID and by week for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_roster_player_stats_by_week
.
Source code in test/integration/test_api_team_data.py
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
|
test_get_team_draft_results ¶
test_get_team_draft_results(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of draft results for chosen team by team ID for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_draft_results
.
Source code in test/integration/test_api_team_data.py
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 |
|
test_get_team_matchups ¶
test_get_team_matchups(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
league_id,
team_id,
team_name,
show_log_output,
)
Integration test for retrieval of matchups for chosen team by team ID for chosen Yahoo fantasy league.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_team_matchups
.
Source code in test/integration/test_api_team_data.py
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 |
|
test_api_user_data ¶
Pytest integration tests for Yahoo Fantasy Sports API user data.
Note
Tests saving and loading all Yahoo Fantasy Sports API user data.
Attributes: |
|
---|
test_get_current_user ¶
test_get_current_user(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of metadata for current logged-in Yahoo user.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_current_user
.
Source code in test/integration/test_api_user_data.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
test_get_user_games ¶
test_get_user_games(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of game history for current logged-in Yahoo user.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_user_games
.
Source code in test/integration/test_api_user_data.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
test_get_user_leagues_by_game_id ¶
test_get_user_leagues_by_game_id(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of league history by game ID for current logged-in Yahoo user.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_user_leagues_by_game_key
.
Source code in test/integration/test_api_user_data.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
test_get_user_teams ¶
test_get_user_teams(
yahoo_query,
yahoo_data,
data_dir,
season,
game_id,
show_log_output,
)
Integration test for retrieval of teams for the current game for the current logged-in Yahoo user.
Note
Tests :func:~yfpy.query.YahooFantasySportsQuery.get_user_teams
.
Source code in test/integration/test_api_user_data.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|