Exemple #1
0
def update_projections(path, week):
    print("Updating Projections.")
    s = Stats()
    curr_projections = s.get_week_projections('regular', config['seasonYear'],
                                              week)
    with open(path, 'w') as outfile:
        json.dump(curr_projections, outfile, indent=2)
        outfile.close()
    return curr_projections
Exemple #2
0
def test_get_week_projections():
	stats = Stats()
	week_projections = stats.get_week_projections("regular", 2018, "4")
	assert isinstance(week_projections, list)