Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 21, 2019
1 parent adb5098 commit 99f9437
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ omit =
*examples*
*tests*
ogs5py/reader/*
ogs5py/tools/vtk_viewer.py
ogs5py/fileclasses/msh/gmsh.py
ogs5py/fileclasses/msh/viewer.py
ogs5py/fileclasses/msh/checker.py
Expand Down
14 changes: 14 additions & 0 deletions tests/test_ogs5py.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ def test_pump(self):
self.head = self.point["owell"]["HEAD"]
self.assertTrue(len(self.time) == len(self.head) == 16)
self.assertAlmostEqual(self.head[-1], -0.55744648, places=3)
self.pnt = self.model.output_files(
pcs="GROUNDWATER_FLOW", typ="TEC_POINT"
)
self.ply = self.model.output_files(
pcs="GROUNDWATER_FLOW", typ="TEC_POLYLINE"
)
self.vtk = self.model.output_files(
pcs="GROUNDWATER_FLOW", typ="VTK"
)
self.pvd = self.model.output_files(
pcs="GROUNDWATER_FLOW", typ="VTK"
)
self.assertTrue(len(self.ply) == len(self.vtk) == len(self.pvd) == 0)
self.assertTrue(len(self.pnt) == 1)

self.model.gen_script(os.path.join(self.ogs_path, "script"))
self.model.load_model(self.model.task_root)
Expand Down

0 comments on commit 99f9437

Please sign in to comment.