Remove test code from main module.

This commit is contained in:
Josh Lucas
2026-04-22 14:36:33 -05:00
parent 5e77d03d74
commit 5e199cce34
2 changed files with 31 additions and 79 deletions

View File

@@ -1,9 +1,14 @@
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_read_datablock():
def test_export():
xsy = XSY("tests/data/hsps.xsy")
assert isinstance(xsy.read_datablock(), DataFrame)
out_path = "tests/output"
xsy.datablock.to_csv(os.path.join(out_path, 'test_db.csv'), index=False)
xsy.defs.to_csv(os.path.join(out_path, 'test_ddt.csv'), index=False)