Beispiel #1
0
    def setUp(self):
        self.working_dir = tempfile.mkdtemp(prefix='puppet-sync-tests')
        self.repo = Repository('test-repo', working_dir=self.working_dir)
        self.conduit = MockConduit()
        self.config = PluginCallConfiguration({}, {
            constants.CONFIG_FEED: FEED,
        })
        self.is_cancelled_call = mock.MagicMock().is_cancelled_call

        self.run = PuppetModuleSyncRun(self.repo, self.conduit, self.config,
                                       self.is_cancelled_call)