Пример #1
0
    def setUp(self):
        super().setUp()

        self.compilers = catkin_tools.Compilers("compilers_path", "sources",
                                                ["keyring"], self.project)

        patcher = mock.patch("snapcraft.repo.Ubuntu")
        self.ubuntu_mock = patcher.start()
        self.addCleanup(patcher.stop)

        patcher = mock.patch("subprocess.check_output")
        self.check_output_mock = patcher.start()
        self.addCleanup(patcher.stop)
Пример #2
0
    def setUp(self):
        super().setUp()

        self.project = snapcraft.ProjectOptions()
        self.compilers = catkin_tools.Compilers('compilers_path', 'sources',
                                                self.project)

        patcher = mock.patch('snapcraft.repo.Ubuntu')
        self.ubuntu_mock = patcher.start()
        self.addCleanup(patcher.stop)

        patcher = mock.patch('subprocess.check_output')
        self.check_output_mock = patcher.start()
        self.addCleanup(patcher.stop)