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.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):

View File

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

View File

@ -1,12 +1,12 @@
import uuid
from api.file import delete_file
from crc.api.file import delete_file
from crc import session
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
from workflow_processor import WorkflowProcessor
from models.file import FileModel
from crc.workflow_processor import WorkflowProcessor
from crc.models.file import FileModel
def all_specifications():

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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