Skip to content

Commit 424c561

Browse files
committed
mdpa tests now working, this time really
1 parent fa1e538 commit 424c561

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/test_mdpahandler.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_mdpa_write_outfile(self):
9393
mesh_points = mdpa_handler.parse(infilename)
9494
mdpa_handler.write(mesh_points, outfilename)
9595
self.assertEqual(mdpa_handler.outfile, outfilename)
96-
self.addCleanup(os.remove, outfilename)
96+
#self.addCleanup(os.remove, outfilename)
9797

9898
def test_mdpa_write_comparison_1(self):
9999
infilename = 'tests/test_datasets/test_square.mdpa'
@@ -111,12 +111,12 @@ def test_mdpa_write_comparison_2(self):
111111
outfilename_expected = 'tests/test_datasets/test_square_out_true.mdpa'
112112
mdpa_handler = uh.MdpaHandler()
113113
mesh_points = mdpa_handler.parse(infilename)
114-
mesh_points[0][0] = 2.2
115-
mesh_points[5][1] = 4.3
116-
mesh_points[9][2] = 0.5
117-
mesh_points[45][0] = 7.2
118-
mesh_points[132][1] = -1.2
119-
mesh_points[255][2] = -3.6
114+
mesh_points[0][0] = 0.0
115+
mesh_points[5][1] = 1.0
116+
mesh_points[9][2] = 0.0
117+
mesh_points[44][0] = 0.0
118+
mesh_points[122][1] = 0.2
119+
mesh_points[255][2] = 0.0
120120
mdpa_handler.write(mesh_points, outfilename)
121121
self.assertTrue(filecmp.cmp(outfilename, outfilename_expected))
122122
self.addCleanup(os.remove, outfilename)

0 commit comments

Comments
 (0)