def setUp(self): super(RepoManagerTests, self).setUp() mock_plugins.install() # Create the manager instance to test self.repo_manager = repo_manager.RepoManager() self.importer_manager = importer_manager.RepoImporterManager()
def setUp(self): super(RepoUnitAssociationManagerTests, self).setUp() database.update_database([TYPE_1_DEF, TYPE_2_DEF, MOCK_TYPE_DEF]) mock_plugins.install() self.manager = association_manager.RepoUnitAssociationManager() self.repo_manager = repo_manager.RepoManager() self.importer_manager = importer_manager.RepoImporterManager() self.content_manager = content_cud_manager.ContentManager() # Set up a valid configured repo for the tests self.repo_id = 'associate-repo' self.repo_manager.create_repo(self.repo_id) self.importer_manager.set_importer(self.repo_id, 'mock-importer', {}) # Create units that can be associated to a repo self.unit_type_id = 'mock-type' self.unit_id = 'test-unit-id' self.unit_key = {'key-1': 'test-unit'} self.content_manager.add_content_unit(self.unit_type_id, self.unit_id, self.unit_key) self.unit_id_2 = 'test-unit-id-2' self.unit_key_2 = {'key-1': 'test-unit-2'} self.content_manager.add_content_unit(self.unit_type_id, self.unit_id_2, self.unit_key_2)
def setUp(self): super(RepoSyncManagerTests, self).setUp() mock_plugins.install() # Create the manager instances for testing self.repo_manager = repo_manager.RepoManager() self.importer_manager = repo_importer_manager.RepoImporterManager() self.sync_manager = repo_sync_manager.RepoSyncManager()
def setUp(self, mock_repo_qs): super(RepoSyncConduitTests, self).setUp() mock_plugins.install() types_database.update_database([TYPE_1_DEF, TYPE_2_DEF]) self.importer_manager = importer_manager.RepoImporterManager() self.association_manager = association_manager.RepoUnitAssociationManager( ) self.association_query_manager = association_query_manager.RepoUnitAssociationQueryManager( ) self.content_manager = content_manager.ContentManager() self.query_manager = query_manager.ContentQueryManager() self.importer_manager.set_importer('repo-1', 'mock-importer', {}) self.conduit = RepoSyncConduit('repo-1', 'test-importer')
def setUp(self): super(TestDoSync, self).setUp() mock_plugins.install() self.repo_manager = repo_manager.RepoManager() self.importer_manager = repo_importer_manager.RepoImporterManager() self.sync_manager = repo_sync_manager.RepoSyncManager()
def setUp(self): super(RepoManagerTests, self).setUp() mock_plugins.install() self.importer_manager = importer_manager.RepoImporterManager()