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

fixed unit test error, unit tests might need a big overhaul when changing all kwargs.get

parent 665602c1
Branches
Tags
1 merge request!36Resolve "Automatic Property Testing"
Pipeline #1596270 failed
......@@ -22,7 +22,7 @@ from matplotlib.lines import Line2D
from matplotlib.patches import Polygon
from mpl_toolkits.mplot3d.art3d import Path3DCollection, Poly3DCollection
from mpl_toolkits.mplot3d.axes3d import Axes3D as MplAxes3D
from numpy import isin, ndarray
from numpy import ndarray
from plot_serializer.model import (
Axis,
......
......@@ -109,6 +109,9 @@ def test_hist_plot(
update_tests = request.config.getoption("--update-tests")
_, ax = serializer.subplots()
if bins is None and cumulative is None and density is None:
# giving arguments the none value throws errors, might need a test overhaul overall
ax.hist(x)
ax.hist(
x,
bins=bins,
......@@ -126,7 +129,7 @@ def test_hist_plot(
ax.set_ylabel(ylabel)
if metadata:
ax.hist(x, bins=bins, color=color, label=label, cumulative=cumulative, density=density)
ax.hist(x)
serializer.add_custom_metadata_figure(metadata)
serializer.add_custom_metadata_plot(metadata, plot_selector=0)
serializer.add_custom_metadata_axis(metadata, axis="y", plot_selector=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment