Skip to content

Commit 43b4ea7

Browse files
committed
Guard against blank PR number being passed to test
Otherwise results in the wrong container app name and environment being configured and called.
1 parent 9c925cb commit 43b4ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/python/smoke_test/notifications_smoke_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def test_notifications():
5252

5353
def configure():
5454
environment = os.getenv("ENVIRONMENT", "dev")
55-
pr_number = os.getenv("PR_NUMBER")
55+
pr_number = os.getenv("PR_NUMBER", "")
5656
storage_account = f"stmanbrs{environment}uks"
5757

58-
if pr_number is not None:
58+
if pr_number != "":
5959
environment = f"pr-{pr_number}"
6060
storage_account = f"stmanbrspr{pr_number}uks"
6161

0 commit comments

Comments
 (0)