Skip to content

Commit 8e2434a

Browse files
committed
(trivial update to a test function)
1 parent feaabe0 commit 8e2434a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_components/test_source.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def test_FieldSource(transpose):
179179
)
180180
s.plot(y=0, transpose=transpose)
181181
plt.close()
182+
s.plot(z=0, transpose=transpose)
183+
plt.close()
182184

183185
# test that non-planar geometry crashes plane wave and gaussian beams
184186
with pytest.raises(pydantic.ValidationError):
@@ -204,9 +206,6 @@ def test_FieldSource(transpose):
204206
with pytest.raises(pydantic.ValidationError):
205207
_ = td.TFSF(size=(1, 1, 0), direction="+", source_time=g, injection_axis=2)
206208

207-
s.plot(z=0, transpose=transpose)
208-
plt.close()
209-
210209

211210
@pytest.mark.parametrize("transpose", [True, False])
212211
def test_current_source(transpose):

0 commit comments

Comments
 (0)