Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Richard Mckinsey committed Jul 12, 2023
1 parent 0677c8e commit ef0d0ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion thicket/tests/test_columnar_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

import re

import hatchet as ht
import pandas as pd

import hatchet as ht
from test_filter_metadata import filter_one_column
from test_filter_metadata import filter_multiple_and
from test_filter_stats import check_filter_stats
Expand Down Expand Up @@ -47,6 +48,11 @@ def test_columnar_join(columnar_join_thicket):
[len(th.profile_mapping) for th in thicket_list]
)

# PerfData and StatsFrame nodes should be in the same order.
assert (pd.unique(combined_th.dataframe.reset_index()["node"].tolist()) == pd.unique(
combined_th.statsframe.dataframe.reset_index()["node"].tolist())
).all()


def test_filter_columnar_join(columnar_join_thicket):
thicket_list, thicket_list_cp, combined_th = columnar_join_thicket
Expand Down

0 comments on commit ef0d0ce

Please sign in to comment.