aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/05_test_detection.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2019-10-07 11:23:13 +0200
committerGuido Günther <agx@sigxcpu.org>2019-10-07 13:49:11 +0200
commit11f9f31d52bf894e41728b25c0994f88ead3fedd (patch)
treee930c58089991a6640ec0a501d56900b6e2a7966 /tests/05_test_detection.py
parentfb26fd9229f8a836e8ddef643e6e9c4c128dd2af (diff)
export-orig: Check 'origin/pristine-tar' as well for compression type
Closes: #941894
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'