import os from pandas import DataFrame from AuDaGe.formats.controlexpert.xsy import XSY def test_init(): assert isinstance(XSY("tests/data/hsps.xsy"), XSY) def test_export(): xsy = XSY("tests/data/hsps.xsy") out_path = "tests/output" xsy.datablock.to_csv( os.path.join(out_path, 'datablock.csv'), index=False ) xsy.defs.to_csv( os.path.join(out_path, 'defs.csv'), index=False ) xsy.datablock_expanded.to_csv( os.path.join(out_path, 'expanded.csv'), index=False )