mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-06-07 13:15:53 +02:00
Fixed broken tests.
This commit is contained in:
@@ -47,7 +47,7 @@ def read_sheet_file(filename: Union[str, Path]) -> dict:
|
||||
char_props = {}
|
||||
parent_sheets = these_props.pop('parent_sheets', [])
|
||||
for parent_sheet in parent_sheets:
|
||||
parent_sheet = Path(parent_sheet)
|
||||
parent_sheet = (filename.parent / parent_sheet).resolve()
|
||||
if parent_sheet != filename:
|
||||
parent_props = read_sheet_file(parent_sheet)
|
||||
char_props.update(parent_props)
|
||||
|
||||
@@ -7,7 +7,7 @@ from dungeonsheets import make_sheets, character, monsters
|
||||
|
||||
EG_DIR = Path(__file__).parent.parent.resolve() / "examples"
|
||||
CHARFILE = EG_DIR / "rogue1.py"
|
||||
GMFILE = EG_DIR / "gm.py"
|
||||
GMFILE = EG_DIR / "gm-session-notes.py"
|
||||
|
||||
|
||||
class MakeSheetsTestCase(unittest.TestCase):
|
||||
|
||||
@@ -9,7 +9,7 @@ from dungeonsheets.readers import read_sheet_file
|
||||
|
||||
EG_DIR = (Path(__file__).parent.parent / "examples").resolve()
|
||||
CHAR_PYTHON_FILE = EG_DIR / "rogue1.py"
|
||||
GM_PYTHON_FILE = EG_DIR / "gm.py"
|
||||
GM_PYTHON_FILE = EG_DIR / "gm-session-notes.py"
|
||||
ROLL20_JSON_FILE = EG_DIR / "barbarian3.json"
|
||||
FOUNDRY_JSON_FILE = EG_DIR / "bard3_foundry.json"
|
||||
SPELLCASTER_JSON_FILE = EG_DIR / "artificer2.json"
|
||||
|
||||
Reference in New Issue
Block a user