Skip to content

Commit 3cc14a1

Browse files
committed
Fix test issues
1 parent 3145796 commit 3cc14a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test_modules/test_actions_quad.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from view.mesh_plotter.mesh_plots import plot_mesh
88
from mesh_model.reader import read_gmsh
99

10+
TESTFILE_FOLDER = os.path.join(os.path.dirname(__file__), '../mesh_files/')
1011

1112
class TestQuadActions(unittest.TestCase):
1213

@@ -106,7 +107,7 @@ def test_cleanup(self):
106107

107108

108109
def test_actions(self):
109-
filename = os.path.join('../mesh_files/', 't1_quad.msh')
110+
filename = os.path.join(TESTFILE_FOLDER, 't1_quad.msh')
110111
cmap = read_gmsh(filename)
111112
plot_mesh(cmap)
112113
d = Dart(cmap, 14)
@@ -122,7 +123,7 @@ def test_actions(self):
122123
plot_mesh(cmap)
123124

124125
def test_random_quad(self):
125-
filename = os.path.join('../mesh_files/', 't1_quad.msh')
126+
filename = os.path.join(TESTFILE_FOLDER, 't1_quad.msh')
126127
cmap = read_gmsh(filename)
127128
plot_mesh(cmap)
128129

0 commit comments

Comments
 (0)