Fixes import paths, which were screwing up stuff.
This commit is contained in:
parent
6faabea8a4
commit
50dfa561a9
|
@ -7,7 +7,7 @@ from flask import send_file
|
|||
|
||||
from crc import session
|
||||
from crc.api.common import ApiErrorSchema, ApiError
|
||||
from crc.models.file import FileModelSchema, FileModel, FileDataModel, FileType
|
||||
from models.file import FileModelSchema, FileModel, FileDataModel, FileType
|
||||
|
||||
|
||||
def update_file_from_request(file_model):
|
||||
|
|
|
@ -2,9 +2,9 @@ from connexion import NoContent
|
|||
|
||||
from crc import session
|
||||
from crc.api.common import ApiError, ApiErrorSchema
|
||||
from crc.models.study import StudyModelSchema, StudyModel
|
||||
from crc.models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModel
|
||||
from crc.workflow_processor import WorkflowProcessor
|
||||
from models.study import StudyModelSchema, StudyModel
|
||||
from models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModel
|
||||
from workflow_processor import WorkflowProcessor
|
||||
|
||||
|
||||
def all_studies():
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
import uuid
|
||||
|
||||
from api.file import delete_file
|
||||
from crc import session
|
||||
from crc.api.common import ApiError, ApiErrorSchema
|
||||
from crc.models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModelSchema, WorkflowSpecModel, \
|
||||
from models.workflow import WorkflowModel, WorkflowModelSchema, WorkflowSpecModelSchema, WorkflowSpecModel, \
|
||||
Task, TaskSchema
|
||||
from crc.workflow_processor import WorkflowProcessor
|
||||
from workflow_processor import WorkflowProcessor
|
||||
from models.file import FileModel
|
||||
|
||||
|
||||
def all_specifications():
|
||||
|
|
|
@ -9,8 +9,8 @@ from SpiffWorkflow.camunda.parser.CamundaParser import CamundaParser
|
|||
from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser
|
||||
|
||||
from crc import session
|
||||
from crc.models.file import FileDataModel, FileModel, FileType
|
||||
from crc.models.workflow import WorkflowStatus
|
||||
from models.file import FileDataModel, FileModel, FileType
|
||||
from models.workflow import WorkflowStatus
|
||||
|
||||
|
||||
class CustomBpmnScriptEngine(BpmnScriptEngine):
|
||||
|
|
|
@ -3,9 +3,9 @@ import glob
|
|||
import os
|
||||
|
||||
from crc import app, db, session
|
||||
from crc.models.file import FileType, FileModel, FileDataModel
|
||||
from crc.models.study import StudyModel
|
||||
from crc.models.workflow import WorkflowSpecModel
|
||||
from models.file import FileType, FileModel, FileDataModel
|
||||
from models.study import StudyModel
|
||||
from models.workflow import WorkflowSpecModel
|
||||
|
||||
|
||||
class ExampleDataLoader:
|
||||
|
|
|
@ -3,8 +3,9 @@ import unittest
|
|||
from datetime import datetime
|
||||
|
||||
from crc import session
|
||||
from crc.models.study import StudyModel, StudyModelSchema, ProtocolBuilderStatus
|
||||
from crc.models.workflow import WorkflowSpecModel, WorkflowSpecModelSchema, WorkflowModel, WorkflowStatus, \
|
||||
from models.file import FileModel
|
||||
from models.study import StudyModel, StudyModelSchema, ProtocolBuilderStatus
|
||||
from models.workflow import WorkflowSpecModel, WorkflowSpecModelSchema, WorkflowModel, WorkflowStatus, \
|
||||
WorkflowModelSchema, TaskSchema
|
||||
from tests.base_test import BaseTest
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@ import unittest
|
|||
from datetime import datetime
|
||||
|
||||
from crc import session
|
||||
from crc.models.file import FileModel, FileType, FileModelSchema, FileDataModel
|
||||
from crc.models.workflow import WorkflowSpecModel
|
||||
from models.file import FileModel, FileType, FileModelSchema, FileDataModel
|
||||
from models.workflow import WorkflowSpecModel
|
||||
from tests.base_test import BaseTest
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import unittest
|
||||
|
||||
from crc import session
|
||||
from crc.models.file import FileModel
|
||||
from crc.models.workflow import WorkflowSpecModel, WorkflowStatus
|
||||
from crc.workflow_processor import WorkflowProcessor
|
||||
from models.file import FileModel
|
||||
from models.workflow import WorkflowSpecModel, WorkflowStatus
|
||||
from workflow_processor import WorkflowProcessor
|
||||
from tests.base_test import BaseTest
|
||||
|
||||
|
||||
|
@ -53,4 +53,4 @@ class TestWorkflowProcessor(BaseTest, unittest.TestCase):
|
|||
data = processor.get_data()
|
||||
self.assertIsNotNone(data)
|
||||
self.assertIn("message", data)
|
||||
self.assertEqual("Oh, Ginger.", data.get('message'))
|
||||
self.assertEqual("Oh, Ginger.", data.get('message'))
|
||||
|
|
Loading…
Reference in New Issue