# Path: crosscompute/exceptions.py
# class CrossComputeError(Exception):
# class CrossComputeConfigurationError(CrossComputeError):
# class CrossComputeConfigurationNotFoundError(CrossComputeConfigurationError):
# class CrossComputeConfigurationFormatError(CrossComputeError):
# class CrossComputeDataError(CrossComputeError):
# class CrossComputeExecutionError(CrossComputeError):
#     def __str__(self):
# 
# Path: crosscompute/scripts/serve.py
# def do(arguments=None):
# def configure_argument_parser_for_serving(a):
# def serve_with(automation, args):
# def serve(
#         automation, host=HOST, port=PORT, with_browser=True,
#         is_static=False, is_production=False,
#         base_uri='', allowed_origins=None,
#         disk_poll_in_milliseconds=DISK_POLL_IN_MILLISECONDS,
#         disk_debounce_in_milliseconds=DISK_DEBOUNCE_IN_MILLISECONDS):
# L = getLogger(__name__)


from collections import OrderedDict
from invisibleroads_macros.disk import copy_folder
from os.path import dirname, join
from pytest import fixture
from crosscompute.exceptions import DataTypeError
from crosscompute.models import Result
from crosscompute.scripts.serve import ResultRequest
from crosscompute.types import StringType, DATA_TYPE_BY_SUFFIX
        ('configuration_folder', TOOL_FOLDER),
        ('a_path', 1),
        ('a', 2),
        ('x.a_path', 3),
        ('x.a', 4)
    ])


@fixture
def result(data_folder):
    result = Result(id=1)
    result_folder = result.get_folder(data_folder)
    copy_folder(result_folder, RESULT_FOLDER)
    return result


@fixture
def result_request(posts_request):
    return ResultRequest(posts_request)


DATA_TYPE_BY_SUFFIX['whee'] = WheeType
FOLDER = dirname(__file__)
TOOL_FOLDER = join(FOLDER, 'tools', 'multiple-tools')
RESULT_FOLDER = join(FOLDER, 'results', 'no-links')


pytest_plugins = [
    'invisibleroads_posts.tests',
    'invisibleroads_uploads.tests',

# Path: crosscompute/exceptions.py
# class CrossComputeError(Exception):
# class CrossComputeConfigurationError(CrossComputeError):
# class CrossComputeConfigurationNotFoundError(CrossComputeConfigurationError):
# class CrossComputeConfigurationFormatError(CrossComputeError):
# class CrossComputeDataError(CrossComputeError):
# class CrossComputeExecutionError(CrossComputeError):
#     def __str__(self):
# 
# Path: crosscompute/scripts/serve.py
# def do(arguments=None):
# def configure_argument_parser_for_serving(a):
# def serve_with(automation, args):
# def serve(
#         automation, host=HOST, port=PORT, with_browser=True,
#         is_static=False, is_production=False,
#         base_uri='', allowed_origins=None,
#         disk_poll_in_milliseconds=DISK_POLL_IN_MILLISECONDS,
#         disk_debounce_in_milliseconds=DISK_DEBOUNCE_IN_MILLISECONDS):
# L = getLogger(__name__)


# Path: experiments/0.7/tests/x_conftest.py
from collections import OrderedDict
from invisibleroads_macros.disk import copy_folder
from os.path import dirname, join
from pytest import fixture
from crosscompute.exceptions import DataTypeError
from crosscompute.models import Result
from crosscompute.scripts.serve import ResultRequest
from crosscompute.types import StringType, DATA_TYPE_BY_SUFFIX

        ('configuration_folder', TOOL_FOLDER),
        ('a_path', 1),
        ('a', 2),
        ('x.a_path', 3),
        ('x.a', 4)
    ])


@fixture
def result(data_folder):
    result = Result(id=1)
    result_folder = result.get_folder(data_folder)
    copy_folder(result_folder, RESULT_FOLDER)
    return result


@fixture
def result_request(posts_request):
    return ResultRequest(posts_request)


DATA_TYPE_BY_SUFFIX['whee'] = WheeType
FOLDER = dirname(__file__)
TOOL_FOLDER = join(FOLDER, 'tools', 'multiple-tools')
RESULT_FOLDER = join(FOLDER, 'results', 'no-links')


pytest_plugins = [
    'invisibleroads_posts.tests',
    'invisibleroads_uploads.tests',

]