def test_get_datasource_name_without_tenant(self): name = EdCoreDBConnection.get_datasource_name() self.assertEquals(name, None)
def setUpClass(cls): super().setUpClass(EdCoreDBConnection.get_datasource_name(get_unittest_tenant_name()))
def test_get_datasource_name(self): name = EdCoreDBConnection.get_datasource_name('dummy') self.assertEqual(name, EdCoreDBConnection.CONFIG_NAMESPACE + '.dummy')
def setUpClass(cls, datasource_name=None, metadata=None, resources_dir=None, use_metadata_from_db=True): if datasource_name is None: datasource_name = EdCoreDBConnection.get_datasource_name(get_unittest_tenant_name()) super().setUpClass(datasource_name=datasource_name, metadata=metadata, resources_dir=resources_dir, use_metadata_from_db=use_metadata_from_db)