示例#1
0
def admin_nabigation_lists():
    rootPath = getRootPath()
    verifyEmailJsonArr = ["admin_item_success.json"]
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #
    print(jsonFilrIndex)
    filePath = os.path.join(rootPath, "data_json", "function_item_json",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)
示例#2
0
def delete_role():
    rootPath = getRootPath()
    verifyEmailJsonArr = ["delete_role.json"]
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #
    print(jsonFilrIndex)
    filePath = os.path.join(rootPath, "data_json", "author_command",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)
示例#3
0
def user_token():
    rootPath = getRootPath()
    verifyEmailJsonArr = ['author_token_success.json']
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #
    print(jsonFilrIndex)
    filePath = os.path.join(rootPath, "data_json", "author_token",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)
示例#4
0
def query_roles_by_user_id():
    rootPath = getRootPath()
    verifyEmailJsonArr = ["role_list.json"]
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #
    print(jsonFilrIndex)
    filePath = os.path.join(rootPath, "data_json", "author_command",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)
示例#5
0
def verifyEmailResult():
    rootPath = getRootPath()
    verifyEmailJsonArr = ['verifyEmailFail.json', 'verifyEmailSuccess.json']
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #

    filePath = os.path.join(rootPath, "data_json",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)
示例#6
0
def user_profile_data_avatar():
    rootPath = getRootPath()
    verifyEmailJsonArr = ['data.json']
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #
    print(jsonFilrIndex)
    filePath = os.path.join(rootPath, "data_json", "profile",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)
示例#7
0
def influuRegister():
    rootPath = getRootPath()
    verifyEmailJsonArr = [
        'emailAlreadyHas.json', 'registerFail.json', "registeSuccess.json",
        "userNameAlreadyHas.json"
    ]
    jsonFilrIndex = random.randint(0, len(verifyEmailJsonArr) - 1)
    #
    print(jsonFilrIndex)
    filePath = os.path.join(rootPath, "data_json", "registerJsons",
                            verifyEmailJsonArr[jsonFilrIndex])
    print(filePath)
    return operateFile(filePath)