diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-06 16:56:23 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-06 16:57:11 -0500 |
commit | 882a2bcaf8902c5dad40b302fedb1a4d17b86019 (patch) | |
tree | 6439be633e5fb39c5f88652fdd79ed35aeabec4d /dotfiles.py | |
parent | 3ffb368f882d6c7048573cd697595e5084885f9f (diff) | |
download | dotfiles-882a2bcaf8902c5dad40b302fedb1a4d17b86019.tar.gz dotfiles-882a2bcaf8902c5dad40b302fedb1a4d17b86019.tar.bz2 dotfiles-882a2bcaf8902c5dad40b302fedb1a4d17b86019.zip |
Fix tests to match recent changes
Diffstat (limited to 'dotfiles.py')
-rw-r--r-- | dotfiles.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dotfiles.py b/dotfiles.py index 233d37e..f868d5b 100644 --- a/dotfiles.py +++ b/dotfiles.py @@ -17,7 +17,7 @@ class Repository(object): """ def __init__(self, repodir, homedir): - self.repodir = repodir + self.repodir = repodir.ensure(dir=1) self.homedir = homedir def __str__(self): @@ -69,7 +69,6 @@ class Repository(object): def contents(self): """Return a list of all dotfiles in the repository path.""" contents = [] - self.repodir.ensure(dir=1) for target in self.repodir.listdir(): target = py.path.local(target) contents.append(Dotfile(self._target_to_name(target), target)) |