Skip to content

Commit

Permalink
add names to ref series in server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiffyclub committed Jun 16, 2015
1 parent 2dff004 commit a36eea2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions orca/server/tests/test_server.py
Expand Up @@ -370,7 +370,7 @@ def test_table_groupbyagg_level_mean(tapp):

pdt.assert_series_equal(
test,
pd.Series([70, 85], index=['a', 'b']))
pd.Series([70, 85], index=['a', 'b'], name='b'))


def test_table_groupbyagg_level_median(tapp):
Expand All @@ -382,7 +382,7 @@ def test_table_groupbyagg_level_median(tapp):

pdt.assert_series_equal(
test,
pd.Series([70, 85], index=['a', 'b']))
pd.Series([70, 85], index=['a', 'b'], name='b'))


def test_table_groupbyagg_level_sum(tapp):
Expand All @@ -394,7 +394,7 @@ def test_table_groupbyagg_level_sum(tapp):

pdt.assert_series_equal(
test,
pd.Series([70, 170], index=['a', 'b']))
pd.Series([70, 170], index=['a', 'b'], name='b'))


def test_table_groupbyagg_level_std(tapp):
Expand All @@ -406,4 +406,6 @@ def test_table_groupbyagg_level_std(tapp):

pdt.assert_series_equal(
test,
pd.Series([pd.np.nan, pd.Series([80, 90]).std()], index=['a', 'b']))
pd.Series(
[pd.np.nan, pd.Series([80, 90]).std()],
index=['a', 'b'], name='b'))

0 comments on commit a36eea2

Please sign in to comment.