blob: 0d65a4453ee0a70db91942dd13e629b482ce3627 [file] [log] [blame]
import os
import subprocess
from unittest import mock
from .. import utils
def test_git_for_path_no_git():
this_dir = os.path.dirname(__file__)
with mock.patch(
"subprocess.check_output",
side_effect=subprocess.CalledProcessError(1, "foo")):
assert utils.git(this_dir) is None