Skip to content

Commit

Permalink
Skip serialization tests when latest botocore is installed (#45755)
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk authored Jan 17, 2025
1 parent 3da6796 commit 4521e8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/serialization/test_dag_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,13 @@ def setup_test_cases(self):
)
)

# Skip that test if latest botocore is used - it reads all example dags and in case latest botocore
# is upgraded to latest, usually aiobotocore can't be installed and some of the system tests will fail with
# import errors.
@pytest.mark.skipif(
os.environ.get("UPGRADE_BOTO", "") == "true",
reason="This test is skipped when latest botocore is installed",
)
@pytest.mark.db_test
def test_serialization(self):
"""Serialization and deserialization should work for every DAG and Operator."""
Expand Down

0 comments on commit 4521e8d

Please sign in to comment.