示例#1
0
def fixture_category_api():
    conn = Connection()
    conn.create_category_with_name("category to be deleted")
    yield
    conn = Connection()
    conn.delete_category_with_name("new")
    conn.delete_category_with_name("category to be deleted")
    conn.edit_category_with_name("MountNew", "Mount")
    conn.close()
示例#2
0
def create_category():
    """
    Create Category
    """
    with allure.step('Create category {}'.format(
            CATEGORIESPAGE['category_old'])):
        db = Connection()
        db.create_category_with_name(CATEGORIESPAGE['category_old'])
        msg = "Create Category {}".format(CATEGORIESPAGE['category_old'])
        loger('Category', 'info', msg)