This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c1772d090f Fix Utils Tests for Dataset Isolation Mode (#41138)
c1772d090f is described below

commit c1772d090f0f5185a916e9922d30d6f1c4fe1531
Author: Jens Scheffler <[email protected]>
AuthorDate: Wed Jul 31 00:20:52 2024 +0200

    Fix Utils Tests for Dataset Isolation Mode (#41138)
---
 tests/www/test_utils.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/www/test_utils.py b/tests/www/test_utils.py
index f592b93e71..337155fd5c 100644
--- a/tests/www/test_utils.py
+++ b/tests/www/test_utils.py
@@ -210,6 +210,7 @@ class TestUtils:
 
         assert epoch_time == expected_epoch_time
 
+    @pytest.mark.skip_if_database_isolation_mode
     @pytest.mark.db_test
     def test_make_cache_key(self):
         from airflow.www.app import cached_app
@@ -222,6 +223,7 @@ class TestUtils:
             result_cache_key = utils.make_cache_key()
             assert result_cache_key == expected_cache_key
 
+    @pytest.mark.skip_if_database_isolation_mode
     @pytest.mark.db_test
     def test_task_instance_link(self):
         from airflow.www.app import cached_app
@@ -251,6 +253,7 @@ class TestUtils:
         assert "<a&1>" not in html_map_index_none
         assert "<b2>" not in html_map_index_none
 
+    @pytest.mark.skip_if_database_isolation_mode
     @pytest.mark.db_test
     def test_dag_link(self):
         from airflow.www.app import cached_app
@@ -261,6 +264,7 @@ class TestUtils:
         assert "%3Ca%261%3E" in html
         assert "<a&1>" not in html
 
+    @pytest.mark.skip_if_database_isolation_mode
     @pytest.mark.db_test
     def test_dag_link_when_dag_is_none(self):
         """Test that when there is no dag_id, dag_link does not contain 
hyperlink"""
@@ -272,6 +276,7 @@ class TestUtils:
         assert "None" in html
         assert "<a href=" not in html
 
+    @pytest.mark.skip_if_database_isolation_mode
     @pytest.mark.db_test
     def test_dag_run_link(self):
         from airflow.www.app import cached_app
@@ -664,6 +669,7 @@ def test_get_col_default_not_existing(session):
     assert default_value is None
 
 
[email protected]_if_database_isolation_mode
 @pytest.mark.db_test
 def test_dag_run_custom_sqla_interface_delete_no_collateral_damage(dag_maker, 
session):
     interface = DagRunCustomSQLAInterface(obj=DagRun, session=session)

Reply via email to