Ejemplo n.º 1
0
def ctx(tmpdir_factory):
    target_local_path = tmpdir_factory.mktemp('test_context')
    target_path = str(target_local_path)
    copy_main_workspace(target_path)
    return RestrekContext(join(target_path, C.CMDS_DIR),
                          join(target_path, C.PLANS_DIR),
                          join(target_path, C.ENVIRONMENTS_DIR))
Ejemplo n.º 2
0
def scheduler(tmpdir_factory):
    target_local_path = tmpdir_factory.mktemp('test_services')
    target_path = str(target_local_path)
    copy_main_workspace(target_path)
    ctx = RestrekContext(join(target_path, C.CMDS_DIR),
                         join(target_path, C.PLANS_DIR),
                         join(target_path, C.ENVIRONMENTS_DIR))
    return PlanService(ctx)
Ejemplo n.º 3
0
def ctx_no_global_properties(tmpdir_factory):
    target_local_path = tmpdir_factory.mktemp(
        'test_context_no_global_properties')
    target_path = str(target_local_path)
    copy_main_workspace(target_path, 'with_global_properties')
    return RestrekContext(join(target_path, C.CMDS_DIR),
                          join(target_path, C.PLANS_DIR),
                          join(target_path, C.ENVIRONMENTS_DIR))
Ejemplo n.º 4
0
def dataloader(tmpdir_factory):
    target_local_path = tmpdir_factory.mktemp('test_dataloader')
    target_path = str(target_local_path)
    copy_main_workspace(target_path)
    return DataLoader(join(target_path, C.CMDS_DIR),
                      join(target_path, C.PLANS_DIR))
Ejemplo n.º 5
0
def ctx_ws(tmpdir_factory):
    target_local_path = tmpdir_factory.mktemp('test_context_ws')
    target_path = str(target_local_path)
    copy_main_workspace(target_path)
    return target_path