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
def test_get_week_projections(): stats = Stats() week_projections = stats.get_week_projections("regular", 2018, "4") assert isinstance(week_projections, list)