from otree.api import Currency as c, currency_range from . import pages from ._builtin import Bot from .models import Constants class PlayerBot(Bot): def play_round(self): yield (pages.Demographics, { 'birthday': 1, 'birthmonth': 'Jan', 'birthyear': 1990, 'major': 'Geisteswissenschaften', 'height': 170, 'weight': 70, 'exercise': 5] }) yield (pages.CognitiveReflectionTest, { 'crt_bat': 10, 'crt_widget': 5, 'crt_lake': 48 }) for value in [ self.player.crt_bat, self.player.payoff ]: assert value != None