pegleg/tests/unit/engine/util
Felipe Monteiro 2e51779d57 refactor: Exchange NotADirectoryError for better exception
This patch set replaces raising NotADirectoryError after trying
to parse a repository for its root path (normalize_repo_path in
pegleg.engine.util.git) with a better exception
(exceptions.GitInvalidRepoException). It is better because a
folder can still not be a repo, so raising the first exception
isn't apropos.

Next, this patch set changes where the exception is raised --
which is in normalize_repo_path itself, which is more appropriate
as the function is used in many places and so there should be
intrinsic error handling so as to avoid having to wrap it every
time.

Change-Id: I918d8c293f1140eb80c83499dba2c23af232b79e
2018-10-26 10:37:17 -04:00
..
__init__.py Standardize Pegleg directory structure 2018-09-23 10:33:40 -04:00
test_definition.py Implement global lint and lint by site logic 2018-10-02 21:41:56 +01:00
test_git.py refactor: Exchange NotADirectoryError for better exception 2018-10-26 10:37:17 -04:00