Skip to content

Commit

Permalink
Force test email to contains "+testsdk"
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
otaviojacobi committed May 24, 2024
1 parent 1eba56f commit 2a3b5a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def __init__(self):
}
)

if "+testsdk" not in self.credentials["email"]:
raise Exception("Missing environment credentials, all emails must include `+testsdk` to avoid accidental deletion") # noqa: E501

# Stop the test if it's run by an admin user account.
token_data = jwt.decode(
self.balena.settings.get("token"),
Expand Down

0 comments on commit 2a3b5a3

Please sign in to comment.