Skip to content

Commit

Permalink
accept args but dont do anything w/ them
Browse files Browse the repository at this point in the history
  • Loading branch information
ceorourke committed Oct 24, 2024
1 parent ec8185d commit 558d368
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sentry/testutils/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,9 @@ def create_alert_rule(
aggregate="count()",
time_window=10,
threshold_period=1,
include_all_projects=False,
environment=None,
excluded_projects=None,
date_added=None,
query_type=None,
dataset=Dataset.Events,
Expand Down Expand Up @@ -1593,6 +1595,8 @@ def create_alert_rule(
query_type=query_type,
dataset=dataset,
environment=environment,
include_all_projects=include_all_projects,
excluded_projects=excluded_projects,
user=user,
event_types=event_types,
comparison_delta=comparison_delta,
Expand Down Expand Up @@ -1633,7 +1637,9 @@ def create_alert_rule_activation(

@staticmethod
@assume_test_silo_mode(SiloMode.REGION)
def create_alert_rule_trigger(alert_rule, label=None, alert_threshold=100):
def create_alert_rule_trigger(
alert_rule, label=None, alert_threshold=100, excluded_projects=None
):
if not label:
label = petname.generate(2, " ", letters=10).title()

Expand Down

0 comments on commit 558d368

Please sign in to comment.