def test_update_hit_points():
    stat_info = StatInfo(STATS)
    new_hit_points = str(int(stat_info.hit_points()) + 6)
    stat_info.update_hit_points(new_hit_points)
    assert stat_info.hit_points() == str(new_hit_points)
    assert stat_info.hit_points() == str(STATS['HitPoints']['m_BaseValue'])
def test_speed():
    speed = str(STATS['Speed']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.speed() == str(speed)
def test_strength():
    strength = str(STATS['SkillAthletics']['BaseStat']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.strength() == str(strength)
def test_hit_points():
    hit_points = str(STATS['HitPoints']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.hit_points() == str(hit_points)
def test_additional_cmd():
    additional_cmd = str(STATS['AdditionalCMD']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.additional_cmd() == str(additional_cmd)
def test_additional_dmg():
    additional_dmg = str(STATS['AdditionalDamage']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.additional_dmg() == str(additional_dmg)
def test_update_base_ac():
    stat_info = StatInfo(STATS)
    new_base_ac = str(int(stat_info.base_ac()) + 6)
    stat_info.update_base_ac(new_base_ac)
    assert stat_info.base_ac() == str(new_base_ac)
    assert stat_info.base_ac() == str(STATS['AC']['m_BaseValue'])
Esempio n. 8
0
def test_constitution():
    constitution = str(STATS['Constitution']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.constitution() == str(constitution)
Esempio n. 9
0
def test_update_charisma():
    stat_info = StatInfo(STATS)
    new_charisma = str(int(stat_info.charisma()) + 6)
    stat_info.update_charisma(new_charisma)
    assert stat_info.charisma() == str(new_charisma)
    assert stat_info.charisma() == str(STATS['Charisma']['m_BaseValue'])
def test_base_ac():
    base_ac = str(STATS['AC']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.base_ac() == str(base_ac)
Esempio n. 11
0
def test_charisma():
    charisma = str(STATS['Charisma']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.charisma() == str(charisma)
Esempio n. 12
0
def test_wisdom():
    wisdom = str(STATS['SaveWill']['BaseStat']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.wisdom() == str(wisdom)
Esempio n. 13
0
def test_intelligence():
    intelligence = str(STATS['Intelligence']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.intelligence() == str(intelligence)
def test_update_speed():
    stat_info = StatInfo(STATS)
    new_speed = str(int(stat_info.speed()) + 6)
    stat_info.update_speed(new_speed)
    assert stat_info.speed() == str(new_speed)
    assert stat_info.speed() == str(STATS['Speed']['m_BaseValue'])
def test_add_attack_bonus():
    add_attack_bonus = str(STATS['AdditionalAttackBonus']['m_BaseValue'])
    stat_info = StatInfo(STATS)
    assert stat_info.add_attack_bonus() == str(add_attack_bonus)
def test_dexterity():
    dexterity = STATS['Dexterity']['m_BaseValue']
    stat_info = StatInfo(STATS)
    assert stat_info.dexterity() == str(dexterity)
Esempio n. 17
0
def test_update_dexterity():
    stat_info = StatInfo(STATS)
    new_dexterity = str(int(stat_info.dexterity()) + 6)
    stat_info.update_dexterity(new_dexterity)
    assert stat_info.dexterity() == str(new_dexterity)
    assert stat_info.dexterity() == str(STATS['Dexterity']['m_BaseValue'])