From 694cd22c730043ea59a21e7ab9145b57e14b02e6 Mon Sep 17 00:00:00 2001 From: Javier Cladellas Date: Thu, 23 May 2024 14:57:19 +0200 Subject: [PATCH] up tests --- tests/test_readers.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/test_readers.py b/tests/test_readers.py index 19ab385..ea13076 100644 --- a/tests/test_readers.py +++ b/tests/test_readers.py @@ -1,9 +1,11 @@ from feelpp.ktirio.hpdaml.readers import * -def test_read_case(): + +class TestEnsightReader: filepath = "src/cases/case_reader/basic.case" - reader = read_case(filepath) - timeset=reader.GetTimeSets() - time=timeset.GetItem(0) - timesteps=time.GetSize() - assert timesteps == 1 \ No newline at end of file + ensight_reader = EnsightReader(filepath) + + def test_getTimeset(self): + reader = self.ensight_reader.readCase() + time, timesteps = self.ensight_reader.getTimeset() + assert timesteps == 1