e4c_expe2/a3_welcome/tests.py
Johanne Trotin 981d06d34c Expé E4C v6
2025-03-30 12:32:15 +02:00

24 lines
753 B
Python

from otree.api import Currency as c, currency_range, Submission
from . import pages
from ._builtin import Bot
from .models import Constants
import random
# **********************************************************************************************************************
# *** BOT
# **********************************************************************************************************************
class PlayerBot(Bot):
def play_round(self):
# yield (pages.Bienvenue0, {
# 'versionexp': random.randint(1,2),
# })
#
# if self.participant.vars['versionexp'] == 1:
# yield (pages.Bienvenue)
# elif self.participant.vars['versionexp'] == 2:
yield (pages.BienvenueBis)