refactor: add paths, services ctx, and extract models to own files

This commit is contained in:
Benjamin Labrecque
2026-07-22 12:04:55 +02:00
parent e324e3abed
commit 7e690a907e
16 changed files with 474 additions and 524 deletions
-8
View File
@@ -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
-6
View File
@@ -1,6 +0,0 @@
from core.models import IocsOverview
from core.service_creator import ServiceCreator
def test_add_new_service():
pass
+16
View File
@@ -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",
# )