def setUp(self):
		# Every test needs access to the request factory. 
		self.factory = RequestFactory()
		self.user = User.objects.create_user(username = '******', email = 'haiwei@...', password = '******')

		updateNBAteams()
		updateNBAgames(test=True)

		game = Game.objects.all()[0]
		bet = GameBet(creator=self.user, game=game, amount=10, winner=game.home_team)
		bet.save()
Exemple #2
0
    def setUp(self):
        # Every test needs access to the request factory.
        self.factory = RequestFactory()
        self.user = User.objects.create_user(username='******',
                                             email='haiwei@...',
                                             password='******')

        updateNBAteams()
        updateNBAgames(test=True)

        game = Game.objects.all()[0]
        bet = GameBet(creator=self.user,
                      game=game,
                      amount=10,
                      winner=game.home_team)
        bet.save()
Exemple #3
0
 def handle(self, *args, **options):
     updateNBAgames()
Exemple #4
0
 def test_scraper(self):
     updateNBAteams()
     updateNBAgames(test=True)
	def test_scraper(self):
		updateNBAteams()
		updateNBAgames(test=True)
	def handle(self, *args, **options):
		updateNBAgames()