fix(variable_pool): handle invalid attributes in variable lookup (#9646)
This commit is contained in:
@@ -33,8 +33,8 @@ def test_get_file_attribute(pool, file):
|
||||
assert result.value == file.filename
|
||||
|
||||
# Test getting a non-existent attribute
|
||||
with pytest.raises(ValueError):
|
||||
pool.get(("node_1", "file_var", "non_existent_attr"))
|
||||
result = pool.get(("node_1", "file_var", "non_existent_attr"))
|
||||
assert result is None
|
||||
|
||||
|
||||
def test_use_long_selector(pool):
|
||||
|
||||
Reference in New Issue
Block a user