-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test that meta context variables are not overridden when importing
- Loading branch information
1 parent
a77c4e7
commit d49c704
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/test/resources/eager/keeps-meta-context-variables-through-import/import-target.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I am a boring import |
4 changes: 4 additions & 0 deletions
4
src/test/resources/eager/keeps-meta-context-variables-through-import/test.expected.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{% set list = deferred %} | ||
|
||
{% set meta = ['overridden'] %}{% do list.append(meta) %} | ||
{{ list }} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/eager/keeps-meta-context-variables-through-import/test.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% set meta = ['overridden'] %} | ||
{% set list = deferred %} | ||
{% import '../../eager/keeps-meta-context-variables-through-import/import-target.jinja' %} | ||
{% do list.append(meta) %} | ||
{{ list }} |