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 failing trigger test after Flask 2.2.4 upgrade #30875

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Apr 26, 2023

Flask 2.2.4 released yesterday, cause one of our (far too picky) tests to break - breaking main. This PR fixes it by making the test less picky.


^ 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.

Flask 2.2.4 released yesterday, cause one of our (far too picky)
tests to break - breaking main. This PR fixes it by
making the test less picky.
@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Apr 26, 2023
@potiuk
Copy link
Member Author

potiuk commented Apr 26, 2023

Example here: https://github.com/apache/airflow/actions/runs/4803437431/jobs/8548109459?pr=30874

FAILED tests/www/views/test_views_trigger_dag.py::test_trigger_dag_params_conf[request_conf1-expected_conf1] - AssertionError: Couldn't find '<textarea style="display: none;" id="json_start" name="json_start">{\n "other": "test_data",\n "key": 12\n}</textarea>'
assert '<textarea style="display: none;" id="json_start" name="json_start">{\n "other": "test_data",\n "key": 12\n}</textarea>' in '\n\n\n\n\n\n\n \n\n\n\n\n \n <title>Airflow\n \n</title>\n\n \n \n </script>\n <script src="/static/"></script>\n\n \n\n\n\n \n \n\n \n \n \n'

@potiuk potiuk merged commit 3f3afe9 into apache:main Apr 26, 2023
@potiuk potiuk deleted the fix-picky-flask-tests branch April 26, 2023 01:22
ephraimbuddy pushed a commit that referenced this pull request Apr 26, 2023
Flask 2.2.4 released yesterday, cause one of our (far too picky)
tests to break - breaking main. This PR fixes it by
making the test less picky.

(cherry picked from commit 3f3afe9)
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 26, 2023
ephraimbuddy pushed a commit that referenced this pull request Apr 26, 2023
Flask 2.2.4 released yesterday, cause one of our (far too picky)
tests to break - breaking main. This PR fixes it by
making the test less picky.

(cherry picked from commit 3f3afe9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants