Format with Ruff.
This commit is contained in:
@@ -10,17 +10,15 @@ desc: Unit tests for the AuDaGe XSY module.
|
||||
|
||||
import os
|
||||
import unittest
|
||||
from timeit import default_timer as timer
|
||||
|
||||
# from pandas import DataFrame
|
||||
|
||||
# from timeit import default_timer as timer
|
||||
from AuDaGe.formats.controlexpert.xsy import XSY
|
||||
|
||||
IN_PATH = "tests/assets"
|
||||
OUT_PATH = "tests/output"
|
||||
|
||||
class TestXSY(unittest.TestCase):
|
||||
|
||||
class TestXSY(unittest.TestCase):
|
||||
def test_init(self):
|
||||
assert isinstance(XSY(os.path.join(IN_PATH, "hsps.xsy")), XSY)
|
||||
|
||||
@@ -28,12 +26,10 @@ class TestXSY(unittest.TestCase):
|
||||
xsy = XSY()
|
||||
xsy.read(os.path.join(IN_PATH, "hsps.xsy"), expand=False)
|
||||
xsy.datablock.dataframe.to_csv(
|
||||
os.path.join(OUT_PATH, "datablock.csv"),
|
||||
index=False
|
||||
os.path.join(OUT_PATH, "datablock.csv"), index=False
|
||||
)
|
||||
xsy.definitions.dataframe.to_csv(
|
||||
os.path.join(OUT_PATH, "defs.csv"),
|
||||
index=False
|
||||
os.path.join(OUT_PATH, "defs.csv"), index=False
|
||||
)
|
||||
# xsy.expand_datablock(datablock).to_csv(
|
||||
# os.path.join(OUT_PATH, "expanded.csv"),
|
||||
@@ -42,4 +38,4 @@ class TestXSY(unittest.TestCase):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(failfast=True)
|
||||
unittest.main(failfast=True)
|
||||
|
||||
Reference in New Issue
Block a user