Skip to content

Commit

Permalink
Add test_make_multimodel_tableheaders (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
LSYS committed Dec 15, 2023
1 parent 8f504af commit 79e83fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_mplot_dataframe_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import numpy as np
import pandas as pd
from pandas.testing import assert_frame_equal, assert_series_equal

from numpy.testing import assert_array_equal
from forestplot.mplot_dataframe_utils import (
_insert_headers_models,
insert_group_model,
Expand Down Expand Up @@ -206,8 +206,6 @@ def test_make_multimodel_tableheaders():
right_annoteheaders=None,
)
# Verify
# assert_frame_equal(df_result, df_expected)
assert_frame_equal(df_result.iloc[:, :4], df_expected.iloc[:, :4])
assert_series_equal(df_result["yticklabel"], df_expected["yticklabel"])
assert_series_equal(df_result["yticklabel2"], df_expected["yticklabel2"])

assert pd.notna(df_result.loc[0, "yticklabel"])
assert pd.notna(df_result.loc[0, "yticklabel2"])

0 comments on commit 79e83fc

Please sign in to comment.