Skip to content

Commit a3cfdc5

Browse files
committed
Fix test issues
1 parent 2c4feca commit a3cfdc5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

test_modules/test_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from mesh_model.mesh_struct.mesh_elements import Dart, Node
44
from mesh_model.random_trimesh import regular_mesh
55
from environment.actions.triangular_actions import split_edge, flip_edge, collapse_edge
6-
from view.mesh_plotter import plot_mesh
6+
from view.mesh_plotter.mesh_plots import plot_mesh
77

88

99
class TestActions(unittest.TestCase):

test_modules/test_actions_quad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import mesh_model.mesh_struct.mesh as mesh
44
from mesh_model.mesh_struct.mesh_elements import Dart, Node
55
from mesh_model.random_quadmesh import random_mesh
6-
from environment.actions import flip_edge, split_edge, collapse_edge, cleanup_edge
7-
from view.mesh_plotter import plot_mesh
6+
from environment.actions.quadrangular_actions import flip_edge, split_edge, collapse_edge, cleanup_edge
7+
from view.mesh_plotter.mesh_plots import plot_mesh
88
from mesh_model.reader import read_gmsh
99

1010

11-
class TestActions(unittest.TestCase):
11+
class TestQuadActions(unittest.TestCase):
1212

1313
def test_flip(self):
1414
cmap = mesh.Mesh()

test_modules/test_mesh_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from mesh_model.mesh_struct.mesh_elements import Dart
55
import mesh_model.mesh_analysis as Mesh_analysis
66
from environment.actions.triangular_actions import split_edge_ids
7-
from view.mesh_plotter import plot_mesh
7+
from view.mesh_plotter.mesh_plots import plot_mesh
88

99
class TestMeshAnalysis(unittest.TestCase):
1010

test_modules/test_mesh_structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ def test_json(self):
7070
def test_single_quad(self):
7171
cmap = mesh.Mesh()
7272
n1 = cmap.add_node(0, 0)
73-
n2 = cmap.add_node(0, 1)
73+
n2 = cmap.add_node(1, 0)
7474
n3 = cmap.add_node(1, 1)
75-
n4 = cmap.add_node(1, 0)
75+
n4 = cmap.add_node(0, 1)
7676
t = cmap.add_quad(n1, n2, n3, n4)
7777

7878
nodes_of_t = t.get_nodes()

0 commit comments

Comments
 (0)