mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-20 21:13:27 +02:00
14 lines
428 B
Python
14 lines
428 B
Python
import unittest
|
|
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')
|
|
|
|
class CharacterFileTestCase(unittest.TestCase):
|
|
def test_load_character_file(self):
|
|
charfile = CHARFILE
|
|
result = make_sheets.load_character_file(charfile)
|
|
self.assertEqual(result['strength'], 8)
|