Skip to content
Snippets Groups Projects
Commit 05490f62 authored by Julius's avatar Julius
Browse files

again on right plot_surface call

parent ca2cf96f
No related branches found
No related tags found
1 merge request!36Resolve "Automatic Property Testing"
Pipeline #1604433 failed
...@@ -40,10 +40,10 @@ def test_surface_properties( ...@@ -40,10 +40,10 @@ def test_surface_properties(
_, serializer_ax = serializer.subplots(subplot_kw={"projection": "3d"}) _, serializer_ax = serializer.subplots(subplot_kw={"projection": "3d"})
_fig, ax = plt.subplots(subplot_kw={"projection": "3d"}) _fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
try: try:
ax.plot_surface(x, y, z) ax.plot_surface(x, y, z) # type: ignore
except Exception as _e: except Exception as _e:
plt.close() plt.close()
else: else:
serializer_ax.plot_surface(x, y, z) # type: ignore serializer_ax.plot_surface(x, y, z)
assert serializer.to_json() != "{}", "Serialized JSON is empty check input" assert serializer.to_json() != "{}", "Serialized JSON is empty check input"
plt.close() plt.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment