summaryrefslogtreecommitdiff
path: root/morphlib/localrepocache_tests.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-29 17:18:46 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-30 13:11:13 +0100
commitb088e31b740c62b90ddf9c3342b876736790c1e8 (patch)
treeb73ea9c49d130c584c50c3b8c55f755f5cfa6d4a /morphlib/localrepocache_tests.py
parent34817d54a193c6c0937ef3868f31d822e90aa740 (diff)
downloadmorph-b088e31b740c62b90ddf9c3342b876736790c1e8.tar.gz
morph: remove dead code and replace Execute with app.runcmd
Diffstat (limited to 'morphlib/localrepocache_tests.py')
-rw-r--r--morphlib/localrepocache_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/localrepocache_tests.py b/morphlib/localrepocache_tests.py
index 47f92a1d..de894794 100644
--- a/morphlib/localrepocache_tests.py
+++ b/morphlib/localrepocache_tests.py
@@ -17,6 +17,8 @@
import unittest
import urllib2
+import cliapp
+
import morphlib
@@ -36,7 +38,7 @@ class LocalRepoCacheTests(unittest.TestCase):
self.remotes = {}
self.fetched = []
self.removed = []
- self.lrc = morphlib.localrepocache.LocalRepoCache(
+ self.lrc = morphlib.localrepocache.LocalRepoCache(object(),
self.cachedir, repo_resolver, bundle_base_url)
self.lrc._git = self.fake_git
self.lrc._exists = self.fake_exists
@@ -106,7 +108,7 @@ class LocalRepoCacheTests(unittest.TestCase):
def test_fails_to_cache_when_remote_does_not_exist(self):
def fail(args):
- raise morphlib.execute.CommandFailure('', '')
+ raise cliapp.AppException('', '')
self.lrc._git = fail
self.assertRaises(morphlib.localrepocache.NoRemote,
self.lrc.cache_repo, self.repourl)