From cfb24110641e40f046c7885a122e9c0f43445e3d Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Wed, 10 May 2017 15:09:52 +0200 Subject: [PATCH] add comments in test helper --- tests/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/helpers.py b/tests/helpers.py index d9775cd..db93d72 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -75,7 +75,7 @@ def load_config(confpath, profile): def get_path_strip_version(path): - '''Strip a file path for conf tests''' + '''Return the path of a file as stored in yaml config''' strip = path home = os.path.expanduser('~') if strip.startswith(home): @@ -85,6 +85,7 @@ def get_path_strip_version(path): def get_dotfile_from_yaml(dic, path): '''Return the dotfile from the yaml dictionary''' + # path is not the file in dotpath but on the FS dotfiles = dic['dotfiles'] src = get_path_strip_version(path) return [d for d in dotfiles.values() if d['src'] == src][0]