Skip to content

Commit e532173

Browse files
committed
Added tests for mirroring in blade
1 parent dd3c0d7 commit e532173

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_blade.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,18 @@ def test_rotate_rad(self):
386386
np.testing.assert_almost_equal(blade.blade_coordinates_down[1][2],
387387
rotated_coordinates)
388388

389+
def test_blade_mirror_exceptions(self):
390+
blade = create_sample_blade_NACA()
391+
blade.apply_transformations()
392+
with self.assertRaises(ValueError):
393+
blade.mirror(wrong_argument=[0., 0., 0.], point2=[0., 1., 0.], point3=[0., 1., 1.])
394+
395+
def test_blade_mirror_exceptions_2(self):
396+
blade = create_sample_blade_NACA()
397+
blade.apply_transformations()
398+
with self.assertRaises(ValueError):
399+
blade.mirror([0., 1., 1.])
400+
389401
def test_plot_view_elev_init(self):
390402
blade = create_sample_blade_NACA()
391403
blade.apply_transformations()

0 commit comments

Comments
 (0)