import ibmiotf.application
import os

class AbstractTest(object):

    WIOTP_API_KEY=os.getenv("WIOTP_API_KEY")
    WIOTP_API_TOKEN=os.getenv("WIOTP_API_TOKEN")
    ORG_ID = os.getenv("WIOTP_ORG_ID")
    
    appOptions = {'auth-key': WIOTP_API_KEY, 'auth-token': WIOTP_API_TOKEN}
    setupAppClient = ibmiotf.application.Client(appOptions)

@@ -198,16 +198,326 @@
 %22)%0A    %0A
+    if WIOTP_API_KEY is None:%0A        raise Exception(%22WIOTP_API_KEY environment variable is not set%22)%0A    if WIOTP_API_TOKEN is None:%0A        raise Exception(%22WIOTP_API_TOKEN environment variable is not set%22)%0A    if ORG_ID is None:%0A        raise Exception(%22WIOTP_ORG_ID environment variable is not set%22)%0A    %0A
     appO

Make tests throw better error if env vars are missing