def test_init(self): class Kernel(BaseKernel): def _registerBundles(self) -> List[Bundle]: return [ PyfonyBundle(), DatabricksBundle() ] kernel = Kernel( 'test', resolvePath('databricksbundle') + '/DatabricksBundleTest', YamlConfigReader() ) container = kernel.initContainer() testServices(container)
def test_azure(self): container = bootstrappedContainer.init('test_azure') testServices(container)
#!/usr/bin/env python """ This script loads all services from the container to test if everything works properly Differences from ContainerInitTest * poetry dev dependencies must NOT be installed to simulate the Databricks PROD environment (however, databricks-connect python package is still needed) * container is initialized in DEV environment compared to TEST environment used in ContainerInitTest """ from injecta.testing.servicesTester import testServices from __myproject__.ContainerInit import initContainer container = initContainer('dev') testServices(container)
def test_init(self): container = initContainer('dev') testServices(container)
def test_test(self): container = self.__createContainer('test_test') testServices(container)
def test_azure(self): container = self.__createContainer('test_azure') testServices(container)
def test_init(self): testServices(self.__container)