コード例 #1
0
def test_game_details_dict(nba_http_patch):
    assert boxscore.BoxScore(game_id).game_details.get_dict() == game_details
コード例 #2
0
def test_away_team_player_stats(nba_http_patch):
    assert boxscore.BoxScore(game_id).away_team_player_stats.get_dict(
    ) == content['game']['awayTeam']['players']
コード例 #3
0
def test_officials_dict(nba_http_patch):
    assert boxscore.BoxScore(
        game_id).officials.get_dict() == content['game']['officials']
コード例 #4
0
def test_away_team_dict(nba_http_patch):
    assert boxscore.BoxScore(
        game_id).away_team.get_dict() == content['game']['awayTeam']
コード例 #5
0
def test_away_team_stats(nba_http_patch):
    assert boxscore.BoxScore(
        game_id).away_team_stats.get_dict() == away_team_stats
コード例 #6
0
def test_home_team_dict(nba_http_patch):
    assert boxscore.BoxScore(
        game_id).home_team.get_dict() == content['game']['homeTeam']
コード例 #7
0
def test_arena_dict(nba_http_patch):
    assert boxscore.BoxScore(
        game_id).arena.get_dict() == content['game']['arena']
コード例 #8
0
def test_game_dict(nba_http_patch):
    assert boxscore.BoxScore(game_id).game.get_dict() == content['game']
コード例 #9
0
def test_get_response(nba_http_patch):
    assert json.dumps(content) == boxscore.BoxScore(game_id).get_response()
コード例 #10
0
def test_get_request_url():
    assert boxscore.BoxScore(game_id).get_request_url(
    ) == 'https://cdn.nba.com/static/json/liveData/boxscore/boxscore_0022000180.json'