Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Feb 17, 2022
1 parent 25e0c95 commit 903aa4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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 @@ -1119,6 +1120,11 @@ def test_slack_chart_report_schedule_with_text(
| 1 | c21 | c22 | c23 |"""
assert table_markdown in post_message_mock.call_args[1]["text"]

print(post_message_mock.call_args[1]["text"])
assert (
f"http://0.0.0.0:8080/superset/explore/?form_data=%7B%22slice_id%22%3A%201%7D&standalone=0&force=false"
) in post_message_mock.call_args[1]["text"]

# Assert logs are correct
assert_log(ReportState.SUCCESS)

Expand Down

0 comments on commit 903aa4e

Please sign in to comment.