Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NoyaArie committed Aug 29, 2023
1 parent 0cf08da commit 6274d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/mocks/fetchers/alerts_fetcher_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def query_pending_test_alerts(self, *args, **kwargs):
suppression_status="pending",
sent_at=None,
test_created_at="2022-10-09 10:10:10",
elementary_unique_id="elementary.model_id_1.test_id_1.9cf2f5f6ad.None.generic",
),
# Alert after suppression interval
dict(
Expand Down Expand Up @@ -82,6 +83,7 @@ def query_pending_test_alerts(self, *args, **kwargs):
suppression_status="pending",
sent_at=None,
test_created_at="2022-10-09 10:10:10",
elementary_unique_id="elementary.model_id_1.test_id_4.9cf2f5f6ad.None.generic",
),
# Alert without suppression interval
dict(
Expand Down Expand Up @@ -112,6 +114,7 @@ def query_pending_test_alerts(self, *args, **kwargs):
suppression_status="pending",
sent_at=None,
test_created_at="2022-10-09 10:10:10",
elementary_unique_id="elementary.model_id_1.test_id_2.9cf2f5f6ad.None.generic",
),
# First occurrence alert with suppression interval
dict(
Expand Down Expand Up @@ -142,6 +145,7 @@ def query_pending_test_alerts(self, *args, **kwargs):
suppression_status="pending",
sent_at=None,
test_created_at="2022-10-09 10:10:10",
elementary_unique_id="elementary.model_id_1.test_id_3.9cf2f5f6ad.None.generic",
),
# Duplicated alert that should be deduped
dict(
Expand Down Expand Up @@ -174,6 +178,7 @@ def query_pending_test_alerts(self, *args, **kwargs):
suppression_status="pending",
sent_at=None,
test_created_at="2022-10-09 10:10:10",
elementary_unique_id="elementary.model_id_1.test_id_5.9cf2f5f6ad.None.generic",
),
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MockAlert:
owners: Optional[List[str]]
subscribers: Optional[List[str]]
tags: Optional[List[str]]
report_url: Optional[str]
database_name: str = "elementary_test_db"
schema_name: str = "master_elementary"
concise_name: str = "Alert"
Expand Down

0 comments on commit 6274d18

Please sign in to comment.