瀏覽代碼

fixed failed test

Toan Quach 5 月之前
父節點
當前提交
0e445b930d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      tests/core/config/checkers/test_data_node_config_checker.py

+ 4 - 4
tests/core/config/checkers/test_data_node_config_checker.py

@@ -588,11 +588,11 @@ class TestDataNodeConfigChecker:
             Config.check()
         assert len(Config._collector.errors) == 2
         expected_error_messages = [
-            "`write_fct` of DataNodeConfig `new` must be populated with a Callable and not a lambda."
-            " Current value of property `write_fct` is <function TestDataNodeConfigChecker."
+            "`write_fct` of DataNodeConfig `new` must be populated with a serializable Callable function but"
+            " not a lambda. Current value of property `write_fct` is <function TestDataNodeConfigChecker."
             "test_check_callable_properties.<locals>.<lambda>",
-            "`read_fct` of DataNodeConfig `new` must be populated with a Callable and not a lambda."
-            " Current value of property `read_fct` is <function TestDataNodeConfigChecker."
+            "`read_fct` of DataNodeConfig `new` must be populated with a serializable Callable function but"
+            " not a lambda. Current value of property `read_fct` is <function TestDataNodeConfigChecker."
             "test_check_callable_properties.<locals>.<lambda>",
         ]
         assert all(message in caplog.text for message in expected_error_messages)