Skip to content

Commit

Permalink
Add a test case
Browse files Browse the repository at this point in the history
Add a test case to test_relational.py and a fixture empty dataframe.
  • Loading branch information
nokoshu committed Nov 25, 2023
1 parent ae55ce1 commit 7de7def
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ def null_df(rng, long_df):
return df


@pytest.fixture
def empty_df(long_df):
return long_df.drop(long_df.index)


@pytest.fixture
def object_df(rng, long_df):

Expand Down
5 changes: 4 additions & 1 deletion tests/test_relational.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def test_lineplot_smoke(
wide_df, wide_array,
wide_list_of_series, wide_list_of_arrays, wide_list_of_lists,
flat_array, flat_series, flat_list,
long_df, null_df, object_df
long_df, null_df, object_df, empty_df
):

f, ax = plt.subplots()
Expand Down Expand Up @@ -1302,6 +1302,9 @@ def test_lineplot_smoke(
lineplot(x="x", y="y", hue="f", size="s", data=object_df)
ax.clear()

lineplot(x="x", y="y", hue="a", data=empty_df)
ax.clear()

def test_ci_deprecation(self, long_df):

axs = plt.figure().subplots(2)
Expand Down

0 comments on commit 7de7def

Please sign in to comment.