summaryrefslogtreecommitdiffhomepage
path: root/tests/05_test_detection.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/05_test_detection.py')
-rw-r--r--tests/05_test_detection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py
index 5e903db3..d6322335 100644
--- a/tests/05_test_detection.py
+++ b/tests/05_test_detection.py
@@ -21,6 +21,9 @@ class MockGitRepository:
def has_pristine_tar_branch(self):
return self.with_branch
+ def has_branch(self, branch, remote=False):
+ return branch == 'pristine-tar' and self.with_branch
+
def pristine_tar_branch(self):
'pristine-tar'