refactor: app design concept (#305)

This commit is contained in:
cachho
2023-07-18 01:20:26 +02:00
committed by GitHub
parent 7ed46260b3
commit 0ea278f633
16 changed files with 378 additions and 240 deletions

View File

@@ -3,7 +3,7 @@ import unittest
from unittest.mock import patch
from embedchain import App
from embedchain.config import InitConfig
from embedchain.config import AppConfig
class TestChromaDbHostsLoglevel(unittest.TestCase):
@@ -25,7 +25,7 @@ class TestChromaDbHostsLoglevel(unittest.TestCase):
"""
Test if the `App` instance is initialized without a config that does not contain default hosts and ports.
"""
config = InitConfig(log_level="DEBUG")
config = AppConfig(log_level="DEBUG")
app = App(config)

View File

@@ -4,7 +4,7 @@ import unittest
from unittest.mock import patch
from embedchain import App
from embedchain.config import InitConfig
from embedchain.config import AppConfig
from embedchain.vectordb.chroma_db import ChromaDB, chromadb
@@ -38,7 +38,7 @@ class TestChromaDbHostsInit(unittest.TestCase):
host = "test-host"
port = "1234"
config = InitConfig(host=host, port=port)
config = AppConfig(host=host, port=port)
_app = App(config)
@@ -65,7 +65,7 @@ class TestChromaDbHostsLoglevel(unittest.TestCase):
"""
Test if the `App` instance is initialized without a config that does not contain default hosts and ports.
"""
config = InitConfig(log_level="DEBUG")
config = AppConfig(log_level="DEBUG")
_app = App(config)