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.LifeOrientationTest, { 'q1': 4, 'q2': 3, 'q3': 2, 'q4': 3, 'q5': 4, 'q6': 2, 'q7': 1, 'q8': 3, 'q9': 0, 'q10': 4, } assert self.player.optimism_score is not None