You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2023/06/28 05:01:16 UTC
[superset] branch john-bodley--fix-celery-eta updated: fix tests
This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch john-bodley--fix-celery-eta
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/john-bodley--fix-celery-eta by this push:
new 3e4b748949 fix tests
3e4b748949 is described below
commit 3e4b7489491569c003d2bb5559e3e89f3609c76a
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Tue Jun 27 22:01:11 2023 -0700
fix tests
---
tests/integration_tests/reports/scheduler_tests.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/integration_tests/reports/scheduler_tests.py b/tests/integration_tests/reports/scheduler_tests.py
index 3284ee9772..29dd58273a 100644
--- a/tests/integration_tests/reports/scheduler_tests.py
+++ b/tests/integration_tests/reports/scheduler_tests.py
@@ -171,7 +171,7 @@ def test_execute_task(update_state_mock, command_mock, init_mock, owners):
init_mock.return_value = None
command_mock.side_effect = ReportScheduleUnexpectedError("Unexpected error")
with freeze_time("2020-01-01T09:00:00Z"):
- execute(report_schedule.id, "2020-01-01T09:00:00Z")
+ execute(report_schedule.id)
update_state_mock.assert_called_with(state="FAILURE")
db.session.delete(report_schedule)
@@ -199,7 +199,7 @@ def test_execute_task_with_command_exception(
init_mock.return_value = None
command_mock.side_effect = CommandException("Unexpected error")
with freeze_time("2020-01-01T09:00:00Z"):
- execute(report_schedule.id, "2020-01-01T09:00:00Z")
+ execute(report_schedule.id)
update_state_mock.assert_called_with(state="FAILURE")
logger_mock.exception.assert_called_with(
"A downstream exception occurred while generating a report: None. Unexpected error",