def setUp(self): self.TestClass = MAFALeagueInfo() points_ary = [('TACKLES', 1), ('ASSIST', 2), ('SACKS', 3), ('PASSESDEFENSED', 4), ('INTERCEPTIONS', 5), ('FUMBLESRECOVERD', 6), ('FUMBLESFORCED', 7), ('DEFENSEIVETDS', 8)] self.TestPlayer = TestPlayer() for (stat, count) in points_ary: self.TestPlayer.stats[stat] = count pass
def setUp(self): self.TestClass = MAFALeagueInfo() points_ary = [('COMPLETIONS', 1), ('ATTEMPTS', 2), ('PASSING_YDS', 3), ('PASSING_TD', 4), ('PASSING_INT', 5), ('RUSHING_RUSH', 6), ('RUSHING_YDS', 7), ('RUSHING_TD', 8), ('RECIEVING_REC', 9), ('RECIEVING_YDS', 10), ('RECIEVING_TD', 11), ('SCORED_1-39,', 12), ('ATTEMPTED_1-39,', 13), ('SCORED_40-49,', 14), ('ATTEMPTED_40-49,', 15), ('SCORED_50+', 16), ('ATTEMPTED_50+', 17), ('SCORED_TOT', 18), ('ATTEMPTED_TOT', 19), ('SCORED_XP', 20), ('ATTEMPTED_XP', 21)] self.TestPlayer = TestPlayer() for (stat, count) in points_ary: self.TestPlayer.stats[stat] = count pass
''' Created on Aug 22, 2015 @author: robertbitel ''' import DataStore from LeagueInfo import MAFALeagueInfo, MAFALeagueInfo_Playoffs, SuhNommieNationLeagueInfo, FlexLeague, AutoLeagueInfo, CreateFullVarList, CreateFullOwnerList from FileWriter import WriteByPosition, WriteFullList_NoOwner, WriteFullList_Owner if __name__ == '__main__': data = DataStore.GetPlayerData() mafa_10_league = CreateFullVarList(10, data, MAFALeagueInfo()) mafa_12_league = CreateFullVarList(12, data, MAFALeagueInfo()) mafa_14_league = CreateFullVarList(14, data, MAFALeagueInfo()) mafa_14_playoff_league = CreateFullVarList(14, data, MAFALeagueInfo_Playoffs()) snn_12_league = CreateFullVarList(12, data, SuhNommieNationLeagueInfo()) snn_12_league_myteam = CreateFullOwnerList('Strk', 12, data, SuhNommieNationLeagueInfo()) flex_10_league = CreateFullVarList(10, data, FlexLeague()) flex_12_league = CreateFullVarList(12, data, FlexLeague()) AutoLeague_league = CreateFullVarList(12, data, AutoLeagueInfo()) files_to_write = [ (mafa_10_league, './MAFA_10_VAR_List.csv', WriteByPosition), (mafa_12_league, './MAFA_12_VAR_List.csv', WriteByPosition), (mafa_14_league, './MAFA_14_VAR_List.csv', WriteByPosition), (mafa_14_playoff_league, './MAFA_14_VAR_PLAYOFF_List.csv', WriteByPosition), (mafa_14_league, './MAFA_14_VAR_Full_List.csv', WriteFullList_NoOwner), (snn_12_league, './SNN_12_VAR_List.csv', WriteByPosition), (snn_12_league, './SNN_12_VAR_Full_List.csv', WriteFullList_Owner),
def setUp(self): self.TestClass = MAFALeagueInfo() pass