From 1919f2677e963a64cef2b62373f25d0cfab99e95 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Fri, 8 Apr 2011 03:50:10 +0200 Subject: Pass tarball_dir to guess_comp_type() Git-Dch: Ignore --- tests/05_test_detection.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3