Skip to content

Commit

Permalink
TST: add basic feature metadata matching test biocore#130
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed May 25, 2020
1 parent e0e3c85 commit b2a843a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/python/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,19 @@ def test_match_inputs_ignore_missing_samples_override(self):
)

def test_match_inputs_feature_metadata_nothing_dropped(self):
pass

t = Tree.from_tree(self.tree)
f_table, f_sample_metadata, f_feature_metadata = tools.match_inputs(
t, self.table, self.sample_metadata, self.feature_metadata
)
assert_frame_equal(f_table, self.table)
assert_frame_equal(f_sample_metadata, self.sample_metadata)
# Check that no filtering had to be done (the feature metadata might be
# out of order compared to the original since we called .loc[] on it,
# hence our use of check_like=True, but the actual data should be the
# same)
assert_frame_equal(
f_feature_metadata, self.feature_metadata, check_like=True
)


if __name__ == "__main__":
Expand Down

0 comments on commit b2a843a

Please sign in to comment.