improve test coverage for dependency detection

This commit is contained in:
Alan Hamlett 2016-05-21 14:21:55 +02:00
parent 5eff290e38
commit e4fea84b5e
5 changed files with 213 additions and 36 deletions

View file

@ -47,12 +47,12 @@ class Git(BaseProject):
log.traceback('warn')
except IOError: # pragma: nocover
log.traceback('warn')
return None
return u('master')
def _project_base(self):
if self.configFile:
return os.path.dirname(os.path.dirname(self.configFile))
return None
return None # pragma: nocover
def _find_git_config_file(self, path):
path = os.path.realpath(path)