# Path: test/framework/api_select.py
# def api(file_name, api_type, login=None, fixed_prefix=None, url_or_dir=None, fake_public_uri=None, invocation_class=None,
#         username=None, password=None):
# 
# Path: test/cfg.py
# class ApiType(Enum):
#     JENKINS = 0
#     SCRIPT = 1
#     MOCK = 2


import sys, os, imp
import pytest
import basic, calculated_flow, prefix, hide_password, errors
from os.path import join as jp
from pytest import raises
from jenkinsflow.flow import parallel, JobControlFailException
from .framework import api_select
from .cfg import ApiType
# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.

here = os.path.abspath(os.path.dirname(__file__))

extra_sys_path = [os.path.normpath(path) for path in [here, jp(here, '../..'), jp(here, '../demo'), jp(here, '../demo/jobs')]]
sys.path = extra_sys_path + sys.path





def load_demo_jobs(demo, api_type):
    print("\nLoad jobs for demo:", demo.__name__)

# Path: test/framework/api_select.py
# def api(file_name, api_type, login=None, fixed_prefix=None, url_or_dir=None, fake_public_uri=None, invocation_class=None,
#         username=None, password=None):
# 
# Path: test/cfg.py
# class ApiType(Enum):
#     JENKINS = 0
#     SCRIPT = 1
#     MOCK = 2


# Path: test/demos_test.py
import sys, os, imp
import pytest
import basic, calculated_flow, prefix, hide_password, errors
from os.path import join as jp
from pytest import raises
from jenkinsflow.flow import parallel, JobControlFailException
from .framework import api_select
from .cfg import ApiType

# Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.

here = os.path.abspath(os.path.dirname(__file__))

extra_sys_path = [os.path.normpath(path) for path in [here, jp(here, '../..'), jp(here, '../demo'), jp(here, '../demo/jobs')]]
sys.path = extra_sys_path + sys.path





def load_demo_jobs(demo, api_type):
    print("\nLoad jobs for demo:", demo.__name__)

    job_load_module_name = demo.__name__ + '_jobs'