def test_git_config_calls(self): executive_mock = Mock() credentials = Credentials("example.com", executive=executive_mock) credentials._read_git_config("foo") executive_mock.run_command.assert_called_with(["git", "config", "--get", "foo"], error_handler=Executive.ignore_error) credentials = Credentials("example.com", git_prefix="test_prefix", executive=executive_mock) credentials._read_git_config("foo") executive_mock.run_command.assert_called_with(["git", "config", "--get", "test_prefix.foo"], error_handler=Executive.ignore_error)
def test_git_config_calls(self): executive_mock = Mock() credentials = Credentials("example.com", executive=executive_mock) credentials._read_git_config("foo") executive_mock.run_command.assert_called_with( ["git", "config", "--get", "foo"], error_handler=Executive.ignore_error) credentials = Credentials("example.com", git_prefix="test_prefix", executive=executive_mock) credentials._read_git_config("foo") executive_mock.run_command.assert_called_with( ["git", "config", "--get", "test_prefix.foo"], error_handler=Executive.ignore_error)