Remove test code from main module.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user