Skip to content

Commit

Permalink
add skipped test for issue #138
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Oct 24, 2019
1 parent aca05d1 commit fa1f1f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions siuba/tests/test_verb_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())


0 comments on commit fa1f1f5

Please sign in to comment.