refactor: add paths, services ctx, and extract models to own files
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
from config.paths import paths
|
||||
|
||||
|
||||
def test_paths():
|
||||
"""
|
||||
Will fail when paths is imported if a path is invalid
|
||||
"""
|
||||
assert True
|
||||
@@ -1,6 +0,0 @@
|
||||
from core.models import IocsOverview
|
||||
from core.service_creator import ServiceCreator
|
||||
|
||||
|
||||
def test_add_new_service():
|
||||
pass
|
||||
@@ -0,0 +1,16 @@
|
||||
from config.paths import Paths
|
||||
from core.service_creator import ServiceCreator
|
||||
from models.context import ServicesContext
|
||||
|
||||
|
||||
def test_add_new_service():
|
||||
paths = Paths()
|
||||
ctx = ServicesContext.load_from_disk(paths)
|
||||
creator = ServiceCreator(ctx=ctx)
|
||||
# creator.add_service(
|
||||
# name="test-service",
|
||||
# user="test-user",
|
||||
# ioc_description="test ioc description",
|
||||
# ui_name="Test UI Name",
|
||||
# ui_filename="TestUiName",
|
||||
# )
|
||||
Reference in New Issue
Block a user