Ejemplo n.º 1
0
def cleaner():
    resource_names = []

    yield resource_names

    for resource_name in resource_names:
        testing_lib.delete_instruction(resource_name)
Ejemplo n.º 2
0
def instruction():
    # create a temporary instruction
    instruction = testing_lib.create_instruction(
        PROJECT_ID, 'VIDEO', INSTRUCTION_GCS_URI)

    yield instruction

    # tear down
    testing_lib.delete_instruction(instruction.name)
Ejemplo n.º 3
0
def instruction():
    # create a temporary instruction
    instruction = testing_lib.create_instruction(
        PROJECT_ID, datalabeling.DataType.VIDEO, INSTRUCTION_GCS_URI
    )

    yield instruction

    # tear down
    testing_lib.delete_instruction(instruction.name)