- Added optional context parameter to return only variables not present in the provided context.
- Added test tests/get_undeclared_variables.py:
- Verifies behavior before rendering (all variables)
- Verifies after rendering with incomplete context (only missing variables)
- Verifies after rendering with complete context (empty set)
- Verifies compatibility with custom Jinja2 environment
- All tests use asserts and are ready for CI integration.
Closes #585
18 KiB
18 KiB