Exemple #1
0
 def test_can_send_source_errors_request(self, loadtargets_mock):
     backend = FakeBackend()
     backend.send_request = Mock()
     instance = stackide.StackIDE(
         mock_window([cur_dir + '/mocks/helloworld/']), test_settings, backend)
     self.assertIsNotNone(instance)
     self.assertTrue(instance.is_active)
     self.assertTrue(instance.is_alive)
     req = Req.get_source_errors()
     instance.send_request(req)
     backend.send_request.assert_called_with(req)
 def update_files(self, filenames):
     new_include_targets = self.update_new_include_targets(filenames)
     self.send_request(Req.update_session_includes(new_include_targets))
     self.send_request(Req.get_source_errors(), Win(self.window).handle_source_errors)
Exemple #3
0
 def update_files(self, filenames):
     new_include_targets = self.update_new_include_targets(filenames)
     self.send_request(Req.update_session_includes(new_include_targets))
     self.send_request(Req.get_source_errors(),
                       Win(self.window).handle_source_errors)