[jhbuild] [tests] add may_checkout() method to mock Branch object
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] [tests] add may_checkout() method to mock Branch object
- Date: Sun, 19 Jul 2009 14:25:23 +0000 (UTC)
commit b1a787ded73f48caeaf260db3adb78cf9dbca2f1
Author: Frédéric Péters <fpeters 0d be>
Date: Sun Jul 19 16:02:52 2009 +0200
[tests] add may_checkout() method to mock Branch object
tests/tests.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/tests.py b/tests/tests.py
index 52e23ed..4a2e28e 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -559,6 +559,9 @@ class SimpleBranch(object):
def checkout(self, buildscript):
pass
+ def may_checkout(self, buildscript):
+ return True
+
def tree_id(self):
return 'made-up-tree-id'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]