예제 #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'