Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
    def setUp(self):
        super(RepoSyncConduitTests, self).setUp()
        mock_plugins.install()
        types_database.update_database([TYPE_1_DEF, TYPE_2_DEF])

        self.repo_manager = repo_manager.RepoManager()
        self.importer_manager = importer_manager.RepoImporterManager()
        self.sync_manager = sync_manager.RepoSyncManager()
        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.repo_manager.create_repo('repo-1')
        self.importer_manager.set_importer('repo-1', 'mock-importer', {})
        self.conduit = RepoSyncConduit('repo-1', 'test-importer', 'importer', 'importer-id')
Exemplo n.º 3
0
 def setUp(self):
     super(TestDoPublish, self).setUp()
     mock_plugins.install()
     self.repo_manager = repo_manager.RepoManager()
     self.distributor_manager = distributor_manager.RepoDistributorManager()
     self.publish_manager = publish_manager.RepoPublishManager()
Exemplo n.º 4
0
 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()