Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests to adopt changes in Jinja 3.1.3 #36731

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

Taragolis
Copy link
Contributor

Recently was released new version of Jinja2 (3.1.3) which seems like change some internal mechanism of load templates in jinja2.FileSystemLoader so our current mocking approach doesn't work anymore. This PR create templates files in temporary directory and add this directory to search path

Related to: #36728 (comment)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@eladkal eladkal added this to the Airflow 2.8.1 milestone Jan 11, 2024
@eladkal eladkal added the type:misc/internal Changelog: Misc changes that should appear in change log label Jan 11, 2024
@Taragolis Taragolis merged commit 8b33e25 into apache:main Jan 11, 2024
53 checks passed
@Taragolis Taragolis deleted the fix-test-jinja2-templates-files branch January 11, 2024 09:52
@potiuk
Copy link
Member

potiuk commented Jan 11, 2024

Nice!

@potiuk
Copy link
Member

potiuk commented Jan 11, 2024

Not only fixed but future-proof. Good job on it @Taragolis

potiuk pushed a commit that referenced this pull request Jan 13, 2024
ephraimbuddy pushed a commit that referenced this pull request Jan 15, 2024
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants