From 882a2bcaf8902c5dad40b302fedb1a4d17b86019 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 6 Jan 2016 16:56:23 -0500 Subject: Fix tests to match recent changes --- dotfiles.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dotfiles.py') 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)) -- cgit v1.2.3