15 lines
400 B
Python
15 lines
400 B
Python
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, 'test_db.csv'), index=False)
|
|
xsy.defs.to_csv(os.path.join(out_path, 'test_ddt.csv'), index=False)
|