Finish address offset calculation for XSY module.

This commit is contained in:
Joshua Lucas
2026-10-14 21:23:21 -05:00
parent 0aaa9492b9
commit 392726a906
4 changed files with 171 additions and 103 deletions

View File

@@ -9,16 +9,17 @@ desc: Unit tests for the AuDaGe XSY module.
"""
import os
# import time
import unittest
from importlib import resources
import output
import assets
from AuDaGe.formats.controlexpert.xsy import *
try:
from tests import assets, output
except ImportError: # pragma: no cover
import assets # noqa: I001
import output
class TestXSY(unittest.TestCase):
"""This test case tests the XSYBlock, DataBlock, and Definitions classes in
@@ -76,7 +77,9 @@ class TestXSYReader(unittest.TestCase):
index=False,
)
debug = False
for debug_step in XSY.DebugStep if debug else [XSY.DebugStep.NONE]:
for debug_step in (
XSY.DebugStep if debug else [XSY.DebugStep.COMPLETE]
):
xsy.expand_datablock(debug_step=debug_step).to_csv(
self.out_path.joinpath(
f"{file_name}_debug_{debug_step.name}.csv"