diff options
author | Loïc Minier <lool@debian.org> | 2011-04-08 03:50:10 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-04-09 22:42:31 +0200 |
commit | 1919f2677e963a64cef2b62373f25d0cfab99e95 (patch) | |
tree | 24f642c978c94ff64a896625600fcf8d04143d68 /tests | |
parent | abf76d0ad980f405f458d54051d0f75a847d25a7 (diff) | |
download | git-buildpackage-1919f2677e963a64cef2b62373f25d0cfab99e95.tar.gz git-buildpackage-1919f2677e963a64cef2b62373f25d0cfab99e95.tar.bz2 git-buildpackage-1919f2677e963a64cef2b62373f25d0cfab99e95.zip |
Pass tarball_dir to guess_comp_type()
Git-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/05_test_detection.py | 6 |
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): |