Skip to content

Commit

Permalink
[test_cli.Test_parse_consensus_option] adapt to pandas FutureWarning…
Browse files Browse the repository at this point in the history
… unique with argument that is not not a Series, Index, ExtensionArray, or np.ndarray
  • Loading branch information
gph82 committed Sep 4, 2024
1 parent 5b70f81 commit d3235ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,14 +701,14 @@ def test_empty(self):
residx2conlab= cli._parse_consensus_option(None, None, self.geom.top,
None,
)
assert _pandasunique(residx2conlab)[0] is None
assert _pandasunique(_np.array(residx2conlab))[0] is None

def test_empty_w_return(self):
residx2conlab, lblr = cli._parse_consensus_option(None, None, self.geom.top,
None,
return_Labeler=True)
assert lblr is None
assert _pandasunique(residx2conlab)[0] is None
assert _pandasunique(_np.array(residx2conlab))[0] is None

def test_with_GPCR(self):
fragments = mdcfragments.get_fragments(self.geom.top)
Expand Down

0 comments on commit d3235ea

Please sign in to comment.