Skip to content

Commit

Permalink
testing formatting all-in-one-alert
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaKerman committed Oct 7, 2024
1 parent 52846d0 commit 38c709f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ def test_format_alerts(data_monitoring_alerts_mock: DataMonitoringAlertsMock):
assert len(sorted_formatted_alerts[5].alerts) == 1
assert len(sorted_formatted_alerts[6].alerts) == 1

# test format all in one
data_monitoring_alerts_mock.config.slack_group_alerts_by = "all_in_one"
formatted_alerts = data_monitoring_alerts_mock._format_alerts(sorted_alerts.send)
assert len(formatted_alerts) == 1


@pytest.fixture
def data_monitoring_alerts_mock() -> DataMonitoringAlertsMock:
Expand Down

0 comments on commit 38c709f

Please sign in to comment.