Esempio n. 1
0
    def test_defer_scrape_espn_user(self):
        clearDb()
        user = User.objects.create_user('*****@*****.**', '*****@*****.**',
                                        'sincere1')
        self.espn_user = EspnUser.objects.create(user=user,
                                                 username='******',
                                                 password='******')

        defer_espn_user_scrape(self.espn_user)

        team = Team.objects.filter(espn_user=self.espn_user)[0]
        defer_league_scrape(self.espn_user, team.league)

        self.assertEquals(3, 3)
Esempio n. 2
0
 def setUp(self):
     clearDb()
     user = User.objects.create_user('*****@*****.**', '*****@*****.**')
     espn_user = EspnUser.objects.create(user=user,
                                         username='******',
                                         password='******')
     league = League.objects.create(name="test league",
                                    espn_id='12345',
                                    year=2013)
     rogues_team = Team.objects.create(league=league,
                                       espn_user=espn_user,
                                       espn_id='3',
                                       team_name='Gotham City Rogues',
                                       owner_name='Bill Prin')
     self.scorecard = Scorecard.objects.create(team=rogues_team,
                                               week=1,
                                               actual=True)
Esempio n. 3
0
 def setUp(self):
     clearDb()
     self.browser = FileBrowser()
     self.sqlstore = SqlStore()
     self.league_scraper = LeagueScraper(self.browser, self.sqlstore)
Esempio n. 4
0
 def setUp(self):
     clearDb()
     self.browser = FileBrowser()
     self.sqlstore = SqlStore()
Esempio n. 5
0
 def setUp(self):
     clearDb()