Esempio n. 1
0
def test_get_participant_info_no_team():
    """Make sure the api info for the participant is properly assigned."""
    my_participant = Participant(fake_participant_conf)
    my_participant._my_team = None
    assert my_participant._get_participant_info() == (
        75.0, 2, 600,
        "//assets.donordrive.com/extralife/images/$avatars$/constituent_D4DC394A-C293-34EB-4162ECD2B8BF4C17.jpg",
        'Extra Life 2021',
        'https://www.extra-life.org/index.cfm?fuseaction=donorDrive.participant&participantID=449263#donate',
        'https://player.twitch.tv/?channel=djotaku',
        'https://www.extra-life.org/index.cfm?fuseaction=donorDrive.participant&participantID=449263',
        '2021-01-03T21:45:29.523+0000', False, 0, '', False, 'Eric Mesa')
Esempio n. 2
0
def test_get_participant_info_no_json():
    """Ensure that the proper values are returned if the JSON values are not retrieved from the api."""
    my_participant = Participant(fake_participant_conf)
    assert my_participant._get_participant_info() == (0, 0, 0, '', '', '', '',
                                                      '', '', False, 0, '',
                                                      False, '')