Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion airflow-core/tests/unit/cli/commands/test_db_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def test_date_timezone_omitted(self, run_cleanup_mock, timezone):
coerced to tz-aware with default timezone
"""
timestamp = "2021-01-01 00:00:00"
with patch("airflow.settings.TIMEZONE", pendulum.timezone(timezone)):
with patch("airflow.settings._Timezone.initialized_timezone", pendulum.timezone(timezone)):
args = self.parser.parse_args(["db", "clean", "--clean-before-timestamp", f"{timestamp}", "-y"])
db_command.cleanup_tables(args)
run_cleanup_mock.assert_called_once_with(
Expand Down
Loading