Beispiel #1
0
def setup_controller(config_file = None):
    controller = Controller()
    controller.artifacts_dir = 'artifacts'
    if not os.path.isdir(controller.artifacts_dir):
        os.mkdir(controller.artifacts_dir)
    controller.artifact_class = FileSystemJsonArtifact
    if config_file:
        controller.config_file = config_file
    else:
        controller.config_file = '.dexy'
    controller.load_config("tests/data")
    controller.setup_and_run()
    return controller
Beispiel #2
0
def setup_controller():
    controller = Controller()
    controller.artifacts_dir = 'artifacts'
    if not os.path.isdir(controller.artifacts_dir):
        os.mkdir(controller.artifacts_dir)
    controller.artifact_class = FileSystemJsonArtifact
    controller.allow_remote = True
    controller.config = {
        'tests/data' : {
            "@simple.py|pyg" : {
                "contents" : "x = 5\nx^2"
            }
        }
    }
    controller.setup_and_run()
    return controller