Skip to content

Commit

Permalink
add section for insert to pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
sgamiye committed Jun 8, 2023
1 parent 6aac5d0 commit ff111c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/rxd/test_nodelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def test_only_nodes(neuron_instance):
print("Nodelist should only contain nodes.")
raise Exception("should not get here")

# try:
# nodelist.insert(1, water.nodes[0]) # insert node into nodelist
# except TypeError:
# print("Only nodes can be inserted into the nodelist.")
# raise Exception("should not get here")
try:
nodelist.insert(1, water.nodes[0]) # insert node into nodelist
except TypeError:
print("Only nodes can be inserted into the nodelist.")
raise Exception("should not get here")

try:
nl = rxd.nodelist.NodeList([]) # create empty nodelist
Expand Down

0 comments on commit ff111c1

Please sign in to comment.