Skip to content

Commit

Permalink
Fix or ignore deprecation warnings in the catalog (#4773)
Browse files Browse the repository at this point in the history
* Fix or ignore deprecation warnings in the catalog

* Make marshmallow ignoration broader
  • Loading branch information
AetherUnbound authored Aug 19, 2024
1 parent d032031 commit 1f28543
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion catalog/dags/common/storage/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class UpsertStrategy(Enum):
merge_jsonb_arrays = auto()
merge_array = auto()
merge_tags = auto()
no_change = ()
no_change = auto()
calculate_value = auto()


Expand Down
10 changes: 8 additions & 2 deletions catalog/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ addopts =
# https://docs.sqlalchemy.org/en/20/errors.html#error-b8d9
# Warning in dependency, nothing we can do
# "removed"/"remoevd" is due to https://github.com/pallets/flask
# distutils
# botocore
# https://github.com/boto/boto3/issues/3889
# Warning in dependency, nothing we can do
# marshmallow_sqlalchemy
# https://github.com/marshmallow-code/marshmallow/issues/2227
# Upstream dependency is fixed but Airflow constraints are keeping us on an
# older version
filterwarnings=
ignore:.*is deprecated and will be (remoevd|removed) in Flask 2.3.:DeprecationWarning
ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning
ignore:datetime.datetime.utcnow:DeprecationWarning:botocore
ignore::DeprecationWarning:marshmallow.*

# Change the pytest cache location since Docker cannot write within the module file
# structure due to permissions issues
Expand Down

0 comments on commit 1f28543

Please sign in to comment.