# 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



class WheeType(StringType):

    @classmethod
    def parse(Class, x, default_value=None):
        if x != 'whee':
            raise DataTypeError('whee expected')
        return x


@fixture
def tool_definition():
    return OrderedDict([
        ('argument_names', ()),
        ('configuration_folder', TOOL_FOLDER),
        ('a_path', 1),

# 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




class WheeType(StringType):

    @classmethod
    def parse(Class, x, default_value=None):
        if x != 'whee':
            raise DataTypeError('whee expected')
        return x


@fixture
def tool_definition():
    return OrderedDict([
        ('argument_names', ()),
        ('configuration_folder', TOOL_FOLDER),
        ('a_path', 1),

        ('a', 2),