コード例 #1
0
    def _setup():
        helper.connect_db(db_alias)
        user = helper.User.objects.first()
        helper.score(user, run_time)

        for i in range(no_of_updates):
            handin = helper.User.objects.first()
            handin.name = str(i)
            handin.save()
コード例 #2
0
    def _setup():
        helper.connect_db(db_alias)
        user = helper.User.objects.first()
        helper.score(user, run_time)

        for i in range(no_of_updates):
            handin = helper.User.objects.first()
            handin.name = str(i)
            handin.save()
コード例 #3
0
    def _setup():
        helper.connect_db(db_alias)
        user = helper.User.objects.first()

        for i in range(no_of_computeds):
            helper.simple_slow_fun(user, i)

        for i in range(no_of_updates):
            handin = helper.User.objects.first()
            handin.name = str(i)
            handin.save()
コード例 #4
0
    def _setup():
        helper.connect_db(db_alias)
        user = helper.User.objects.first()

        for _ in range(no_of_computeds):
            layer_fun(user, seconds)

        for i in range(no_of_updates):
            handin = helper.User.objects.first()
            handin.name = str(i)
            handin.save()