Skip to content

Commit ffbb2db

Browse files
author
brandon
committed
appease the linters
1 parent 362f50b commit ffbb2db

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/groundlight/experimental_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def make_action(
156156
include_image=include_image,
157157
)
158158

159-
def create_alert(
159+
def create_alert( # pylint: disable=too-many-locals # noqa: PLR0913
160160
self,
161161
detector: Union[str, Detector],
162162
name,

test/unit/test_actions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ def test_create_alert_multiple_actions(gl_experimental: ExperimentalApi):
6060
condition = gl_experimental.make_condition("CHANGED_TO", {"label": "YES"})
6161
action1 = gl_experimental.make_action("EMAIL", "test@groundlight.ai", False)
6262
action2 = gl_experimental.make_action("EMAIL", "test@groundlight.ai", False)
63+
actions = [action1, action2]
6364
alert = gl_experimental.create_alert(
6465
det,
6566
f"test_alert_{name}",
6667
condition,
67-
[action1, action2],
68+
actions,
6869
)
69-
assert len(alert.action.root) == 2
70+
assert len(alert.action.root) == len(actions)

0 commit comments

Comments
 (0)