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