Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/unit/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@


def test_create_action(gl: ExperimentalApi):
# We first clear out any rules in case the account has any left over from a previous test
gl.delete_all_rules()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a comment here mentioning that we are deleting rules first just so previous runs don't affect results from the current test run?

name = f"Test {datetime.utcnow()}"
det = gl.get_or_create_detector(name, "test_query")
rule = gl.create_rule(det, "test_rule", "EMAIL", "test@example.com")
Expand Down