From b8d237b3cf960a3784bc47faed2085c7ac38afc2 Mon Sep 17 00:00:00 2001 From: xjules Date: Wed, 11 Sep 2024 11:53:59 +0200 Subject: [PATCH] Fixups --- src/ert/gui/plottery/plots/ensemble.py | 2 +- tests/unit_tests/shared/test_rate_keys.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ert/gui/plottery/plots/ensemble.py b/src/ert/gui/plottery/plots/ensemble.py index b045b1b395c..9d24e270952 100644 --- a/src/ert/gui/plottery/plots/ensemble.py +++ b/src/ert/gui/plottery/plots/ensemble.py @@ -46,7 +46,7 @@ def plot( plot_context.deactivateDateSupport() plot_context.x_axis = plot_context.INDEX_AXIS - draw_style = "steps" if is_rate(plot_context.key()) else None + draw_style = "steps-pre" if is_rate(plot_context.key()) else None self._plotLines( axes, config, diff --git a/tests/unit_tests/shared/test_rate_keys.py b/tests/unit_tests/shared/test_rate_keys.py index b2eb8d07a74..bed7788d617 100644 --- a/tests/unit_tests/shared/test_rate_keys.py +++ b/tests/unit_tests/shared/test_rate_keys.py @@ -48,7 +48,7 @@ def test_is_rate_does_not_raise_error(key): ] -@given(st.sampled_from(examples)) +@given(example=st.sampled_from(examples)) def test_is_rate_determmines_rate_key(example): key, rate = example is_rate_bool = is_rate(key)