Skip to content

Commit

Permalink
test: move into folders to reflect changes done in src/
Browse files Browse the repository at this point in the history
  • Loading branch information
pbullhove committed Oct 6, 2023
1 parent 322e838 commit 9ab12ba
Show file tree
Hide file tree
Showing 40 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class TreeNodeDeleteTest(unittest.TestCase):
def setUp(self) -> None:
simos_blueprints = []
mock_blueprint_folder = "src/tests/unit/common/test_tree/mock_data/mock_blueprints"
mock_blueprint_folder = "src/tests/unit/common/tree/mock_data/mock_blueprints"
mock_blueprints_and_file_names = {
"Blueprint4": "Blueprint4.blueprint.json",
"Bush": "Bush.blueprint.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from enums import REFERENCE_TYPES, SIMOS
from tests.unit.mock_data.mock_blueprint_provider import MockBlueprintProvider

FILE_PATH = "src/tests/unit/common/test_tree/mock_data/mock_blueprints/"
FILE_PATH = "src/tests/unit/common/tree/mock_data/mock_blueprints/"

with open(FILE_PATH + "Garden.blueprint.json") as f:
Garden = json.load(f)
Expand All @@ -20,7 +20,7 @@
class TreeNodeFromDictTestCase(unittest.TestCase):
def setUp(self) -> None:
simos_blueprints = ["dmss://system/SIMOS/Reference"]
mock_blueprint_folder = "src/tests/unit/common/test_tree/mock_data/mock_blueprints"
mock_blueprint_folder = "src/tests/unit/common/tree/mock_data/mock_blueprints"
mock_blueprints_and_file_names = {
"SignalContainer": "SignalContainer.blueprint.json",
"all_contained_cases_blueprint": "all_contained_cases_blueprint.blueprint.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from common.tree.tree_node import ListNode, Node
from common.tree.tree_node_serializer import tree_node_from_dict, tree_node_to_dict
from domain_classes.blueprint_attribute import BlueprintAttribute
from tests.unit.common.test_tree.mock_data.get_mock_nodes import get_engine_package_node
from tests.unit.common.tree.mock_data.get_mock_nodes import get_engine_package_node
from tests.unit.mock_data.mock_blueprint_provider import MockBlueprintProvider
from tests.unit.mock_data.mock_recipe_provider import MockStorageRecipeProvider

Expand All @@ -29,7 +29,7 @@ def setUp(self) -> None:
simos_blueprints = [
"dmss://system/SIMOS/Reference",
]
mock_blueprint_folder = "src/tests/unit/common/test_tree/mock_data/mock_blueprints"
mock_blueprint_folder = "src/tests/unit/common/tree/mock_data/mock_blueprints"
mock_blueprints_and_file_names = {
"all_contained_cases_blueprint": "all_contained_cases_blueprint.blueprint.json",
"Garden": "Garden.blueprint.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class TreeNodeToDictTestCase(unittest.TestCase):
def setUp(self) -> None:
simos_blueprints = []
mock_blueprint_folder = "src/tests/unit/common/test_tree/mock_data/mock_blueprints"
mock_blueprint_folder = "src/tests/unit/common/tree/mock_data/mock_blueprints"
mock_blueprints_and_file_names = {
"all_contained_cases_blueprint": "all_contained_cases_blueprint.blueprint.json",
"Garden": "Garden.blueprint.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from common.tree.tree_node_serializer import tree_node_to_ref_dict
from domain_classes.blueprint_attribute import BlueprintAttribute
from enums import REFERENCE_TYPES, SIMOS
from tests.unit.common.test_tree.mock_data.get_mock_nodes import get_form_example_node
from tests.unit.common.tree.mock_data.get_mock_nodes import get_form_example_node
from tests.unit.mock_data.mock_blueprint_provider import MockBlueprintProvider


Expand All @@ -15,7 +15,7 @@ def setUp(self) -> None:
"dmss://system/SIMOS/Reference",
"dmss://system/SIMOS/NamedEntity",
]
mock_blueprint_folder = "src/tests/unit/common/test_tree/mock_data/mock_blueprints"
mock_blueprint_folder = "src/tests/unit/common/tree/mock_data/mock_blueprints"
mock_blueprints_and_file_names = {
"uncontained_list_blueprint": "uncontained_list_blueprint.blueprint.json",
"FormBlueprint": "FormBlueprint.blueprint.json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
from features.document.use_cases.update_document_use_case import (
update_document_use_case,
)
from tests.unit.common.test_tree.mock_data.get_mock_nodes import get_form_example_node
from tests.unit.common.tree.mock_data.get_mock_nodes import get_form_example_node
from tests.unit.mock_data.mock_blueprint_provider import MockBlueprintProvider
from tests.unit.mock_data.mock_document_service import get_mock_document_service


class DocumentServiceTestCase(unittest.TestCase):
def setUp(self) -> None:
simos_blueprints = ["dmss://system/SIMOS/NamedEntity", "dmss://system/SIMOS/Reference"]
mock_blueprint_folder = "src/tests/unit/common/test_tree/mock_data/mock_blueprints"
mock_blueprint_folder = "src/tests/unit/common/tree/mock_data/mock_blueprints"
mock_blueprints_and_file_names = {
"Bush": "Bush.blueprint.json",
"Box": "Box.blueprint.json",
Expand Down

0 comments on commit 9ab12ba

Please sign in to comment.