Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Feb 16, 2022
1 parent 25e0c95 commit 2507822
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration_tests/reports/commands_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,7 @@ def test_slack_chart_report_schedule(
notification_targets = get_target_from_report_schedule(
create_report_slack_chart
)

assert file_upload_mock.call_args[1]["channels"] == notification_targets[0]
assert file_upload_mock.call_args[1]["file"] == SCREENSHOT_FILE

Expand Down Expand Up @@ -1118,6 +1119,9 @@ def test_slack_chart_report_schedule_with_text(
| 0 | c11 | c12 | c13 |
| 1 | c21 | c22 | c23 |"""
assert table_markdown in post_message_mock.call_args[1]["text"]
assert (
"<http://0.0.0.0:8080/superset/explore/?form_data=%7B%22slice_id%22%3A%201%7D&standalone=0&force=false|Explore in Superset>"
) in post_message_mock.call_args[1]["text"]

# Assert logs are correct
assert_log(ReportState.SUCCESS)
Expand Down

0 comments on commit 2507822

Please sign in to comment.