

@mock.patch(find_git_root_path, mock.Mock(return_value=None))
def test_errors_when_no_git_repo_exists(self):
    with mock.patch(puts_path, mock.Mock()) as puts:
        validate()
        arg = SubstringMatcher(containing='Could not find a git repository')
        puts.assert_called_with(arg)

dataset/ETHPy150Open wercker/wercker-cli/werckercli/tests/commands/test_validate.py ValidationTests.test_errors_when_no_git_repo_exists/original