Skip to content

Commit

Permalink
Fix test_deprecated_options_with_new_section (#44647)
Browse files Browse the repository at this point in the history
  • Loading branch information
utkarsharma2 authored Dec 4, 2024
1 parent aecf0d2 commit b4f4ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def test_deprecated_options_with_new_section(self):
with mock.patch.dict("os.environ", AIRFLOW__CORE__LOGGING_LEVEL="VALUE"):
assert conf.get("logging", "logging_level") == "VALUE"

with pytest.warns(FutureWarning, match="Please update your `conf.get"):
with pytest.warns(DeprecationWarning, match=r"The logging_level option in \[core\]"):
with mock.patch.dict("os.environ", AIRFLOW__CORE__LOGGING_LEVEL="VALUE"):
assert conf.get("core", "logging_level") == "VALUE"

Expand Down

0 comments on commit b4f4ba8

Please sign in to comment.