mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-18 20:23:27 +02:00
updated tests
This commit is contained in:
@@ -4,13 +4,13 @@ import os
|
||||
from dungeonsheets import make_sheets, character
|
||||
|
||||
EG_DIR = os.path.abspath(os.path.join(os.path.split(__file__)[0], '../examples/'))
|
||||
CHARFILE = os.path.join(EG_DIR, 'rogue.py')
|
||||
CHARFILE = os.path.join(EG_DIR, 'rogue1.py')
|
||||
|
||||
class CharacterFileTestCase(unittest.TestCase):
|
||||
def test_load_character_file(self):
|
||||
charfile = CHARFILE
|
||||
result = make_sheets.load_character_file(charfile)
|
||||
self.assertEqual(result['strength'], 8)
|
||||
self.assertEqual(result['strength'], 10)
|
||||
|
||||
|
||||
class PdfOutputTeestCase(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user