From 57abfc29e9c62d9894dbf581b8fe986677d49f14 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Sat, 9 Nov 2024 16:37:09 -0800 Subject: [PATCH] Update test_general.py --- tests/unit_tests/test_general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit_tests/test_general.py b/tests/unit_tests/test_general.py index 00aef4171..1487d331b 100644 --- a/tests/unit_tests/test_general.py +++ b/tests/unit_tests/test_general.py @@ -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( @@ -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(