Fixes import paths

This commit is contained in:
Aaron Louie 2020-01-24 11:52:52 -05:00
parent 0a44ef04d7
commit a3b6e4fc7f
9 changed files with 23 additions and 23 deletions

View File

@ -7,7 +7,7 @@ from flask import send_file
from crc import session from crc import session
from crc.api.common import ApiErrorSchema, ApiError from crc.api.common import ApiErrorSchema, ApiError
from models.file import FileModelSchema, FileModel, FileDataModel, FileType from crc.models.file import FileModelSchema, FileModel, FileDataModel, FileType
def update_file_from_request(file_model): def update_file_from_request(file_model):

View File

@ -2,9 +2,9 @@ from connexion import NoContent
from crc import session from crc import session
from crc.api.common import ApiError, ApiErrorSchema from crc.api.common import ApiError, ApiErrorSchema
from models.study import StudyModelSchema, StudyModel from crc.models.study import StudyModelSchema, StudyModel
from models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModel from crc.models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModel
from workflow_processor import WorkflowProcessor from crc.workflow_processor import WorkflowProcessor
def all_studies(): def all_studies():

View File

@ -1,12 +1,12 @@
import uuid import uuid
from api.file import delete_file from crc.api.file import delete_file
from crc import session from crc import session
from crc.api.common import ApiError, ApiErrorSchema from crc.api.common import ApiError, ApiErrorSchema
from models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModelSchema, WorkflowSpecModel, \ from crc.models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModelSchema, WorkflowSpecModel, \
Task, TaskSchema Task, TaskSchema
from workflow_processor import WorkflowProcessor from crc.workflow_processor import WorkflowProcessor
from models.file import FileModel from crc.models.file import FileModel
def all_specifications(): def all_specifications():

View File

@ -9,8 +9,8 @@ from SpiffWorkflow.camunda.parser.CamundaParser import CamundaParser
from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser
from crc import session from crc import session
from models.file import FileDataModel, FileModel, FileType from crc.models.file import FileDataModel, FileModel, FileType
from models.workflow import WorkflowStatus from crc.models.workflow import WorkflowStatus
class CustomBpmnScriptEngine(BpmnScriptEngine): class CustomBpmnScriptEngine(BpmnScriptEngine):

View File

@ -3,9 +3,9 @@ import glob
import os import os
from crc import app, db, session from crc import app, db, session
from models.file import FileType, FileModel, FileDataModel from crc.models.file import FileType, FileModel, FileDataModel
from models.study import StudyModel from crc.models.study import StudyModel
from models.workflow import WorkflowSpecModel from crc.models.workflow import WorkflowSpecModel
class ExampleDataLoader: class ExampleDataLoader:

View File

@ -4,8 +4,8 @@ import json
import os import os
import unittest import unittest
from models.file import FileModel, FileDataModel from crc.models.file import FileModel, FileDataModel
from models.workflow import WorkflowSpecModel from crc.models.workflow import WorkflowSpecModel
os.environ["TESTING"] = "true" os.environ["TESTING"] = "true"

View File

@ -2,9 +2,9 @@ import json
from datetime import datetime from datetime import datetime
from crc import session from crc import session
from models.file import FileModel from crc.models.file import FileModel
from models.study import StudyModel, StudyModelSchema, ProtocolBuilderStatus from crc.models.study import StudyModel, StudyModelSchema, ProtocolBuilderStatus
from models.workflow import WorkflowSpecModel, WorkflowSpecModelSchema, WorkflowModel, WorkflowStatus, \ from crc.models.workflow import WorkflowSpecModel, WorkflowSpecModelSchema, WorkflowModel, WorkflowStatus, \
WorkflowModelSchema, TaskSchema WorkflowModelSchema, TaskSchema
from tests.base_test import BaseTest from tests.base_test import BaseTest

View File

@ -3,8 +3,8 @@ import json
from datetime import datetime from datetime import datetime
from crc import session from crc import session
from models.file import FileModel, FileType, FileModelSchema, FileDataModel from crc.models.file import FileModel, FileType, FileModelSchema, FileDataModel
from models.workflow import WorkflowSpecModel from crc.models.workflow import WorkflowSpecModel
from tests.base_test import BaseTest from tests.base_test import BaseTest

View File

@ -1,8 +1,8 @@
from crc import session from crc import session
from models.file import FileModel from crc.models.file import FileModel
from models.workflow import WorkflowSpecModel, WorkflowStatus from crc.models.workflow import WorkflowSpecModel, WorkflowStatus
from tests.base_test import BaseTest from tests.base_test import BaseTest
from workflow_processor import WorkflowProcessor from crc.workflow_processor import WorkflowProcessor
class TestWorkflowProcessor(BaseTest): class TestWorkflowProcessor(BaseTest):