summaryrefslogtreecommitdiff
path: root/morphlib/localrepocache_tests.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-31 10:20:24 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-31 10:20:24 +0000
commitac9e6787cd2b82bc37b9ba71d09d44aac71f85b1 (patch)
tree06a810349471e1a025dd398eff6361af35f80633 /morphlib/localrepocache_tests.py
parent242e16e592da6ef0bb3b8f36ba5ce3eb01c0c1ba (diff)
parent426526c692fecd520b1946f362e148d043c61441 (diff)
downloadmorph-ac9e6787cd2b82bc37b9ba71d09d44aac71f85b1.tar.gz
Merge remote-tracking branch 'origin/sam/transfer-status'
Reviewed-By: Richard Ipsum <richard.ipsum@codethink.co.uk> Reviewed-By: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'morphlib/localrepocache_tests.py')
-rw-r--r--morphlib/localrepocache_tests.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/morphlib/localrepocache_tests.py b/morphlib/localrepocache_tests.py
index 22b5ea54..3cc4f07f 100644
--- a/morphlib/localrepocache_tests.py
+++ b/morphlib/localrepocache_tests.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2012-2013 Codethink Limited
+# Copyright (C) 2012-2014 Codethink Limited
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -26,6 +26,11 @@ import morphlib
class FakeApplication(object):
+ def __init__(self):
+ self.settings = {
+ 'verbose': True
+ }
+
def status(self, msg):
pass
@@ -53,7 +58,7 @@ class LocalRepoCacheTests(unittest.TestCase):
self.lrc._mkdtemp = self.fake_mkdtemp
self._mkdtemp_count = 0
- def fake_git(self, args, cwd=None):
+ def fake_git(self, args, **kwargs):
if args[0] == 'clone':
self.assertEqual(len(args), 5)
remote = args[3]
@@ -112,7 +117,7 @@ class LocalRepoCacheTests(unittest.TestCase):
self.lrc.cache_repo(self.repourl)
def test_fails_to_cache_when_remote_does_not_exist(self):
- def fail(args):
+ def fail(args, **kwargs):
self.lrc.fs.makedir(args[4])
raise cliapp.AppException('')
self.lrc._git = fail