コード例 #1
0
    def setUpClass(cls):
        try:
            cls.user = AuthenticateShell.Authenticate()      

            cls.user.create_user(firstName = AuthenticateShell.data["firstName"], 
                                 lastName = AuthenticateShell.data["lastName"], 
                                 email = AuthenticateShell.data["email"], 
                                 phone = AuthenticateShell.data["phone"], 
                                 companyAdminKey = AuthenticateShell.data["company_admin_key"], 
                                 country = AuthenticateShell.data["countryASI"],
                                 sandBox=True)
            
            cls.frontId, cls.backId = AuthenticateShell.base64Encode()
        except:
            print("Unexpected error during setUpClass:", sys.exc_info()[0])
コード例 #2
0
    def setUpClass(cls):
        try:
            cls.user = AuthenticateShell.Authenticate()      

            cls.user.create_user(firstName = AuthenticateShell.data["firstName"], 
                                 lastName = AuthenticateShell.data["lastName"], 
                                 email = AuthenticateShell.data["email"], 
                                 phone = AuthenticateShell.data["phone"], 
                                 companyAdminKey = AuthenticateShell.data["company_admin_key"], 
                                 country = AuthenticateShell.data["countryCAN"])
        except:
            print("Unexpected error during setUpClass:", sys.exc_info()[0])
コード例 #3
0
    def setUpClass(cls):
        try:
            cls.user = AuthenticateShell.Authenticate()      

            cls.user.create_user(firstName = AuthenticateShell.data["firstName"], 
                                lastName = AuthenticateShell.data["lastName"], 
                                email = AuthenticateShell.data["email"], 
                                phone = AuthenticateShell.data["phone"], 
                                companyAdminKey = AuthenticateShell.data["company_admin_key"], 
                                country = AuthenticateShell.data["country"],
                                sandBox=True)
            
            cls.frontId, cls.backId = AuthenticateShell.base64Encode()

            cls.user.upload_id(accessCode = cls.user.GetAccessCode(), 
                                idFront = cls.frontId, 
                                idBack = cls.backId,
                                sandBox=True)

            cls.user.get_quiz(cls.user.GetAccessCode(), sandBox=True)

        except:
            print("Unexpected error during setUpClass:", sys.exc_info()[0])
コード例 #4
0
 def setUpClass(cls):
     try:
         cls.user = AuthenticateShell.Authenticate()
     except:
         print("Unexpected error during setUpClass:", sys.exc_info()[0])