Example #1
0
class Constants(BaseConstants):
    # oTree Constants
    # --------------------------------------------
    name_in_url = 'wc'
    players_per_group = None
    num_rounds = Experiment.phase_one_rounds()
    # --------------------------------------------
    # Experiment Constants
    # --------------------------------------------
    INSTRUCTIONS_ROUND = 1
    INDIFFERENT = 0
def test_rounds_equal_num_auction_pairs():
    experiment = Experiment()
    assert experiment.phase_one_rounds() == len(experiment.phase_one.left_auctions)
    assert experiment.phase_one_rounds() == len(experiment.phase_one.right_auctions)
def play_phase_one(browser):
    print('--Stage 1--')
    play_instructions(browser, 'one')
    for round_number in range(Experiment.phase_one_rounds()):
        play_phase_one_screen(browser, round_number)