Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename tests from multiIndex to multiindex. #10732

Merged
merged 1 commit into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def test_concat_two_empty_series(ignore_index, axis):
),
],
)
def test_concat_dataframe_with_multiIndex(df1, df2):
def test_concat_dataframe_with_multiindex(df1, df2):
gdf1 = df1
gdf1 = gdf1.set_index(["k1", "k2"])

Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def test_dataframe_take(ntake):


@pytest.mark.parametrize("ntake", [1, 2, 8, 9])
def test_dataframe_take_with_multiIndex(ntake):
def test_dataframe_take_with_multiindex(ntake):
np.random.seed(0)
df = cudf.DataFrame(
index=cudf.MultiIndex(
Expand Down
16 changes: 8 additions & 8 deletions python/cudf/cudf/tests/test_multiindex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2021, NVIDIA CORPORATION.
# Copyright (c) 2019-2022, NVIDIA CORPORATION.

"""
Test related to MultiIndex
Expand Down Expand Up @@ -1131,7 +1131,7 @@ def test_multiindex_values_host():
),
],
)
def test_multiIndex_fillna(gdi, fill_value, expected):
def test_multiindex_fillna(gdi, fill_value, expected):
assert_eq(expected, gdi.fillna(fill_value))


Expand Down Expand Up @@ -1173,7 +1173,7 @@ def test_multiIndex_fillna(gdi, fill_value, expected):
),
],
)
def test_multiIndex_empty(pdi):
def test_multiindex_empty(pdi):
gdi = cudf.from_pandas(pdi)

assert_eq(pdi.empty, gdi.empty)
Expand Down Expand Up @@ -1217,7 +1217,7 @@ def test_multiIndex_empty(pdi):
),
],
)
def test_multiIndex_size(pdi):
def test_multiindex_size(pdi):
gdi = cudf.from_pandas(pdi)

assert_eq(pdi.size, gdi.size)
Expand Down Expand Up @@ -1375,7 +1375,7 @@ def test_multiindex_sort_values(pmidx, ascending, return_indexer):
],
)
@pytest.mark.parametrize("ascending", [True, False])
def test_multiIndex_argsort(pdi, ascending):
def test_multiindex_argsort(pdi, ascending):
gdi = cudf.from_pandas(pdi)

if not ascending:
Expand Down Expand Up @@ -1562,7 +1562,7 @@ def test_multiindex_indexing(key):
assert_eq(gi[key], pi[key], exact=False)


def test_multiIndex_duplicate_names():
def test_multiindex_duplicate_names():
gi = cudf.MultiIndex(
levels=[["a", "b"], ["b", "a"]],
codes=[[0, 0], [0, 1]],
Expand Down Expand Up @@ -1699,7 +1699,7 @@ def test_intersection_mulitIndex(idx1, idx2, sort):
None,
],
)
def test_pickle_roundtrip_multiIndex(names):
def test_pickle_roundtrip_multiindex(names):
df = cudf.DataFrame(
{
"one": [1, 2, 3],
Expand Down Expand Up @@ -1745,7 +1745,7 @@ def test_pickle_roundtrip_multiIndex(names):
"is_interval",
],
)
def test_multiIndex_type_methods(pidx, func):
def test_multiindex_type_methods(pidx, func):
gidx = cudf.from_pandas(pidx)

expected = getattr(pidx, func)()
Expand Down
4 changes: 2 additions & 2 deletions python/cudf/cudf/tests/test_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ def test_timedelta_index_repr(index, expected_repr):
],
)
@pytest.mark.parametrize("max_seq_items", [None, 1, 2, 5, 10, 100])
def test_multiIndex_repr(pmi, max_seq_items):
def test_multiindex_repr(pmi, max_seq_items):
pd.set_option("display.max_seq_items", max_seq_items)
gmi = cudf.from_pandas(pmi)

Expand Down Expand Up @@ -1377,7 +1377,7 @@ def test_multiIndex_repr(pmi, max_seq_items):
),
],
)
def test_multiIndex_null_repr(gdi, expected_repr):
def test_multiindex_null_repr(gdi, expected_repr):
actual_repr = gdi.__repr__()

assert actual_repr.split() == expected_repr.split()
Expand Down