def test_LoadZug(self): result = loadchar.load("Zug") self.assertEqual(result, [ 'Zug', { 'CHA': 10, 'CON': 9, 'DEX': 8, 'INT': 12, 'STR': 12, 'WIS': 13 } ])
def test_Loadtest(self): result = loadchar.load("Test") self.assertEqual(result, [ 'Test', { 'CHA': 'test', 'CON': 'test', 'DEX': 'test', 'INT': 'test', 'STR': 'test', 'WIS': 'test' } ])
def test_LoadSamson(self): result = loadchar.load("Samson") self.assertEqual(result, [ 'Samson', { 'STR': 10, 'DEX': 18, 'CON': 9, 'WIS': 13, 'INT': 16, 'CHA': 12 } ])
def test_LoadPanic(self): result = loadchar.load("Panic") self.assertEqual(result, [ 'Panic', { 'STR': 10, 'DEX': 15, 'CON': 14, 'WIS': 13, 'INT': 10, 'CHA': 18 } ])
from data import loadchar from src import roll_weapon #to ensure full funtionality have is_testing return True character = loadchar.load("Zug") roll_weapon.roll_damage(character, "Axe") roll_weapon.roll_damage(character, "Firebolt")