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

again

parent 3cc8c3ea
No related branches found
No related tags found
1 merge request!36Resolve "Automatic Property Testing"
Pipeline #1604432 failed
...@@ -38,12 +38,12 @@ def test_surface_properties( ...@@ -38,12 +38,12 @@ def test_surface_properties(
x, y, z = matrix_triplet x, y, z = matrix_triplet
serializer = MatplotlibSerializer() serializer = MatplotlibSerializer()
_, serializer_ax = serializer.subplots(subplot_kw={"projection": "3d"}) _, serializer_ax = serializer.subplots(subplot_kw={"projection": "3d"})
_fig, ax = plt.subplots(subplot_kw={"projection": "3d"}) # type: ignore _fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
try: try:
ax.plot_surface(x, y, z) ax.plot_surface(x, y, z)
except Exception as _e: except Exception as _e:
plt.close() plt.close()
else: else:
serializer_ax.plot_surface(x, y, z) serializer_ax.plot_surface(x, y, z) # type: ignore
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