aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorLoïc Minier <lool@debian.org>2011-04-08 03:50:10 +0200
committerGuido Günther <agx@sigxcpu.org>2011-04-09 22:42:31 +0200
commit1919f2677e963a64cef2b62373f25d0cfab99e95 (patch)
tree24f642c978c94ff64a896625600fcf8d04143d68 /tests
parentabf76d0ad980f405f458d54051d0f75a847d25a7 (diff)
Pass tarball_dir to guess_comp_type()
Git-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r--tests/05_test_detection.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py
index 9c7abfcd..4c028ff0 100644
--- a/tests/05_test_detection.py
+++ b/tests/05_test_detection.py
@@ -30,13 +30,15 @@ class TestDetection(unittest.TestCase):
def test_guess_comp_type_no_pristine_tar(self):
repo = MockGitRepository(with_branch=False)
- guessed = git_buildpackage.guess_comp_type(repo, 'auto', self.cp)
+ guessed = git_buildpackage.guess_comp_type(
+ repo, 'auto', self.cp, self.tmpdir)
self.assertEqual('gzip', guessed)
def test_guess_comp_type_bzip2(self):
subject = 'pristine-tar data for source_1.2-3.orig.tar.bz2'
repo = MockGitRepository(with_branch=True, subject=subject)
- guessed = git_buildpackage.guess_comp_type(repo, 'auto', self.cp)
+ guessed = git_buildpackage.guess_comp_type(
+ repo, 'auto', self.cp, self.tmpdir)
self.assertEqual("bzip2", guessed)
def test_has_orig_false(self):