From f0ef46ad852c69c58a786bfe46e2272ebeb8e30f Mon Sep 17 00:00:00 2001
From: "Florstedt, Julius" <julius.florstedt@stud.tu-darmstadt.de>
Date: Sun, 23 Feb 2025 22:41:15 +0100
Subject: [PATCH] small fix on the main branch, adding missing else in test
 case.

---
 tests/test_hist_plot.py | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/tests/test_hist_plot.py b/tests/test_hist_plot.py
index 4beebfc..7728887 100644
--- a/tests/test_hist_plot.py
+++ b/tests/test_hist_plot.py
@@ -112,14 +112,15 @@ def test_hist_plot(
     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,
-        color=color,
-        label=label,
-        cumulative=cumulative,
-        density=density,
-    )
+    else:
+        ax.hist(
+            x,
+            bins=bins,
+            color=color,
+            label=label,
+            cumulative=cumulative,
+            density=density,
+        )
 
     if title:
         ax.set_title(title)
-- 
GitLab