Exemplo n.º 1
0
    def test_should_detect_vcs_client(self, mock_discover):
        mock_vcs_client = self.create_mock_vcs_client()
        mock_discover.return_value = mock_vcs_client

        update(['/usr/local/bin/update'])

        self.assertEqual(call(), mock_discover.call_args)
Exemplo n.º 2
0
    def test_should_use_vcs_client_to_update_repository(self, mock_discover):
        mock_vcs_client = self.create_mock_vcs_client()
        mock_discover.return_value = mock_vcs_client

        update(['/usr/local/bin/update'])

        self.assertEqual(call(), mock_vcs_client.update.call_args)
Exemplo n.º 3
0
def update_files(arguments, configuration=None):
    update(arguments)
Exemplo n.º 4
0
def update_files(arguments, configuration):
    update(arguments)
Exemplo n.º 5
0
def update_files(arguments):
    update(arguments)