diff --git a/tests/www/test_views.py b/tests/www/test_views.py index ef05f6b1e675..517d4bc56f99 100644 --- a/tests/www/test_views.py +++ b/tests/www/test_views.py @@ -2784,7 +2784,38 @@ def test_trigger_dag_form(self): ("%2Fgraph%3Fdag_id%3Dexample_bash_operator", "/graph?dag_id=example_bash_operator"), ] ) - def test_trigger_dag_form_origin_url(self, test_origin, expected_origin): + @pytest.mark.skipif( + sys.version_info < (3, 8, 8), + reason='Vulnerability was fixed in Python 3.8.8 which changed the query string separator: bpo-42967', + ) + def test_trigger_dag_form_origin_url_py_lte_387(self, test_origin, expected_origin): + test_dag_id = "example_bash_operator" + + resp = self.client.get(f'trigger?dag_id={test_dag_id}&origin={test_origin}') + self.check_content_in_response( + '