From fa1f1f564166ae0ea34f7da4ef7d099bd41da708 Mon Sep 17 00:00:00 2001 From: Michael Chow Date: Thu, 24 Oct 2019 18:01:22 -0400 Subject: [PATCH] add skipped test for issue #138 --- siuba/tests/test_verb_summarize.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/siuba/tests/test_verb_summarize.py b/siuba/tests/test_verb_summarize.py index 91062443..b645a59b 100644 --- a/siuba/tests/test_verb_summarize.py +++ b/siuba/tests/test_verb_summarize.py @@ -98,3 +98,11 @@ def test_summarize_unnamed_args(df): pd.DataFrame({'n(_)': 4}) ) + +@pytest.mark.skip("TODO: Summarize should fail when result len > 1 (#138)") +def test_frame_mode_returns_many(): + with pytest.raises(ValueError): + df = data_frame(x = [1, 2, 3]) + res = summarize(df, result = _.x.mode()) + +