Skip to content

Commit fbab29b

Browse files
committed
test: add coverage for grid.inspect and grid.plot_solids
1 parent 4a93ac2 commit fbab29b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_003_planewave_sphere.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def test_simulation(self):
4343
xmin, ymin, zmin = (xmin-padx), (ymin-pady), (zmin-padz)
4444
xmax, ymax, zmax = (xmax+padx), (ymax+pady), (zmax+padz)
4545

46+
global grid
4647
grid = GridFIT3D(xmin, xmax, ymin, ymax, zmin, zmax, Nx, Ny, Nz,
4748
stl_solids=stl_solids,
4849
stl_rotate=stl_rotate,
@@ -118,3 +119,15 @@ def test_plot3DonSTL_offscreen(self):
118119
if not flag_interactive:
119120
os.remove('003_3DplotOnSTL_Hy.png')
120121

122+
123+
@pytest.mark.skipif(not flag_interactive, reason="Requires interactive plotting")
124+
def test_grid_inspect(self):
125+
global grid
126+
grid.inspect(add_stl=None, stl_opacity=0.5, stl_colors=None,
127+
anti_aliasing='ssa')
128+
129+
@pytest.mark.skipif(not flag_interactive, reason="Requires interactive plotting")
130+
def test_grid_plot_solids(self):
131+
global grid
132+
grid.plot_solids(bounding_box=False, opacity=1.0, specular=0.5,
133+
anti_aliasing=None)

0 commit comments

Comments
 (0)