Skip to content

Commit

Permalink
up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierCladellas committed May 23, 2024
1 parent a75b548 commit 694cd22
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/test_readers.py
Original file line number Diff line number Diff line change
@@ -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
ensight_reader = EnsightReader(filepath)

def test_getTimeset(self):
reader = self.ensight_reader.readCase()
time, timesteps = self.ensight_reader.getTimeset()
assert timesteps == 1

0 comments on commit 694cd22

Please sign in to comment.