1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

Refactor tests, get rid of hand-crafted test repositories

This commit is contained in:
Ondřej Caletka
2018-07-06 23:51:15 +02:00
parent 241b888215
commit ef26082735
3 changed files with 167 additions and 125 deletions

View File

@ -109,7 +109,10 @@ def get_altered_files(against, diff_filter=None):
encoding="utf-8",
check=True
)
return (Path(p) for p in r.stdout.rstrip("\0").split("\0"))
if r.stdout:
return (Path(p) for p in r.stdout.rstrip("\0").split("\0"))
else:
return list()
def get_zone_origin(zonedata):