jinja/tests
Kevin Brown-Silva ee832194cd
Add support for namespaces in tuple assignment
This fixes a bug that existed because namespaces within `{% set %}`
were treated as a special case. This special case had the side-effect
of bypassing the code which allows for tuples to be assigned to.

The solution was to make tuple handling (and by extension, primary token
handling) aware of namespaces so that namespace tokens can be handled
appropriately. This is handled in a backwards-compatible way which
ensures that we do not try to parse namespace tokens when we otherwise
would be expecting to parse out name tokens with attributes.

Namespace instance checks are moved earlier, and deduplicated, so that
all checks are done before the assignment. Otherwise, the check could be
emitted in the middle of the tuple.
2024-12-20 14:09:40 -08:00
..
res Revert "PackageLoader doesn't depend on setuptools" 2020-03-30 10:11:22 -07:00
conftest.py Use pathlib in some test places 2021-05-18 10:30:11 -07:00
test_api.py Bugfix: wrong default argument for Environment.overlay(enable_async) parameter 2024-12-19 18:22:32 -08:00
test_async_filters.py make unique filter async-aware 2024-12-19 07:19:13 -08:00
test_async.py test on trio, fix all missing aclose related warnings (#1960) 2024-05-11 15:01:12 -07:00
test_bytecode_cache.py Merge branch '2.11.x' 2020-02-05 20:39:04 -08:00
test_compile.py fix f-string syntax error in code generation 2024-12-19 18:08:42 -08:00
test_core_tags.py Add support for namespaces in tuple assignment 2024-12-20 14:09:40 -08:00
test_debug.py Merge branch '3.0.x' 2021-11-05 07:22:41 -07:00
test_ext.py Make nested-trans-block exceptions nicer 2024-01-10 14:27:09 -08:00
test_filters.py int filter handles OverflowError to handle scientific notation 2024-12-19 07:58:25 -08:00
test_idtracking.py add required attribute to blocks 2021-01-29 10:28:39 -05:00
test_imports.py imported macros can access template globals in async mode 2021-10-04 13:49:13 -07:00
test_inheritance.py satisfy formatter, linter, and strict mypy 2024-04-23 09:29:26 -07:00
test_lexnparse.py parse hex, octal, and binary integer literals 2021-04-05 10:35:57 -07:00
test_loader.py separate messages, add test 2024-12-19 20:15:10 -08:00
test_nativetypes.py use env.concat when calling block reference 2024-12-19 07:12:43 -08:00
test_nodes.py Use object.__hash__ for Node.__hash__ 2021-11-09 09:12:22 -08:00
test_pickle.py async_variant filters are pickleable 2022-03-07 07:52:04 -08:00
test_regression.py Pass context when using select 2024-12-19 20:47:24 -08:00
test_runtime.py preserve __slots__ on Undefined classes 2024-12-19 08:11:49 -08:00
test_security.py sandbox indirect calls to str.format 2024-12-19 12:34:27 -08:00
test_tests.py Markup and escape should be imported from markupsafe 2021-04-10 10:22:24 -07:00
test_utils.py don't apply urlize to @a@b 2024-12-19 20:37:58 -08:00