Example #1
0
    def test_should_use_vcs_client_to_show_status_of_modified_files(self, mock_discover):
        mock_vcs_client = self.create_mock_vcs_client()
        mock_discover.return_value = mock_vcs_client

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

        self.assertEqual(call(), mock_vcs_client.status.call_args)
Example #2
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

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

        self.assertEqual(call(), mock_discover.call_args)
Example #3
0
def show_status(arguments, configuration=None):
    status(arguments)
Example #4
0
def show_status(arguments, configuration):
    status(arguments)
Example #5
0
def show_status(arguments):
    status(arguments)