Skip to content

Commit

Permalink
Update test_general.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Nov 10, 2024
1 parent 29b1fe8 commit 57abfc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_check_name_slashes_pass():

def test_check_name_slashes_fail():
# the latest version of HDMF/PyNWB forbids "/" in the object names when creating a new object
# so we use in_construct_mode=True to simulate creating an object that was read from a file
# so we use in_construct_mode=True to simulate an object that was read from a file
table = DynamicTable.__new__(DynamicTable, in_construct_mode=True)
table.__init__(name="test/ing", description="")
assert check_name_slashes(neurodata_object=table) == InspectorMessage(
Expand Down Expand Up @@ -41,7 +41,7 @@ def test_check_name_colons_pass():

def test_check_name_slashes_fail():
# the latest version of HDMF/PyNWB forbids ":" in the object names when creating a new object
# so we use in_construct_mode=True to simulate creating an object that was read from a file
# so we use in_construct_mode=True to simulate an object that was read from a file
table = DynamicTable.__new__(DynamicTable, in_construct_mode=True)
table.__init__(name="test:ing", description="")
assert check_name_colons(neurodata_object=table) == InspectorMessage(
Expand Down

0 comments on commit 57abfc2

Please sign in to comment.