From 710e19a3046e6ed9e03b98e68703561349fb8a64 Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Fri, 17 Nov 2023 13:03:03 -0500 Subject: [PATCH] Add check for empty AVH_API_TOKEN env. var. --- scripts/tests/avh/test_lighting_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/avh/test_lighting_app.py b/scripts/tests/avh/test_lighting_app.py index c44f840696a161..a37c692f39bdec 100644 --- a/scripts/tests/avh/test_lighting_app.py +++ b/scripts/tests/avh/test_lighting_app.py @@ -29,7 +29,7 @@ TEST_PIN_CODE = 20202021 TEST_DISCRIMINATOR = 3840 -if "AVH_API_TOKEN" not in os.environ: +if "AVH_API_TOKEN" not in os.environ or len(os.environ["AVH_API_TOKEN"]) == 0: raise Exception("Please set AVH_API_TOKEN environment variable value")