def test_roster_positions(requests_mock): sub_resource = 'roster_positions' path = f'game/nhl/{sub_resource}' api = YahooFantasyApi(123456, 'nhl', timeout=0) mock_request(requests_mock, path, sub_resource) hasattr(api.game().roster_positions().get(), sub_resource)
def test_stat_categories(requests_mock): sub_resource = 'stat_categories' path = f'game/nhl/{sub_resource}' api = YahooFantasyApi(123456, 'nhl', timeout=0) mock_request(requests_mock, path, sub_resource) hasattr(api.game().stat_categories().get(), sub_resource)
def test_game_old(requests_mock): path = 'game/nhl' api = YahooFantasyApi(123456, 'nhl', timeout=0) mock_request(requests_mock, path, 'old') hasattr(api.game().get(), 'game_key')