Files

9 lines
266 B
Python
Raw Permalink Normal View History

2026-05-12 19:40:31 +09:00
from guardrails.utils.templating_utils import get_template_variables
def test_get_template_variables():
string_template = "${my_var} $my_second_var {not_a_var}"
vars = get_template_variables(string_template)
assert vars == ["my_var", "my_second_var"]