Skip to content

Commit

Permalink
fix test_nodes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Joni Herttuainen committed Jun 26, 2023
1 parent 7e9bfe9 commit 5a77746
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_nodes/test_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,11 @@ def test_functionality_with_separate_node_set(self):
)

with pytest.raises(BluepySnapError, match="Undefined node set"):
self.test_obj.get("ExtraLayer2")
next(self.test_obj.get("ExtraLayer2"))

pdt.assert_frame_equal(
self.test_obj.get(node_sets["ExtraLayer2"]),
self.test_obj.get("Layer2"),
)
tested = pd.concat(df for _, df in self.test_obj.get(node_sets["ExtraLayer2"]))
expected = pd.concat(df for _, df in self.test_obj.get("Layer2"))
pdt.assert_frame_equal(tested, expected)

def test_pickle(self, tmp_path):
pickle_path = tmp_path / "pickle.pkl"
Expand Down

0 comments on commit 5a77746

Please sign in to comment.