diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-20 17:12:03 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-20 17:17:54 +0100 |
commit | ba4f5264ce4dd95025272d43df1a34dd3110087a (patch) | |
tree | 0d60a0c3c25d9238f763cb1ac7e4530438781d8d /tests/component/deb/test_buildpackage.py | |
parent | d9fbaf69b22eff5997122c05d29d7b0c22b4609c (diff) |
component test: Use more fixtures
Diffstat (limited to 'tests/component/deb/test_buildpackage.py')
-rw-r--r-- | tests/component/deb/test_buildpackage.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/component/deb/test_buildpackage.py b/tests/component/deb/test_buildpackage.py index a9ba5395..b7ee795e 100644 --- a/tests/component/deb/test_buildpackage.py +++ b/tests/component/deb/test_buildpackage.py @@ -63,20 +63,19 @@ class TestBuildpackage(ComponentTestBase): "GBP_CHANGES_FILE", "GBP_BUILD_DIR"]) - @RepoFixtures.native + @RepoFixtures.native() def test_debian_buildpackage(self, repo): """Test that building a native debian package works""" self._test_buildpackage(repo) - @RepoFixtures.quilt30 + @RepoFixtures.quilt30() def test_non_native_buildpackage(self, repo): """Test that building a source 3.0 debian package works""" self._test_buildpackage(repo) - @RepoFixtures.native + @RepoFixtures.native() def test_tag_only(self, repo): """Test that only tagging a native debian package works""" - os.chdir('git-buildpackage') repo.delete_tag('debian/0.4.14') # make sure we can tag again ret = buildpackage(['arg0', '--git-tag-only', @@ -138,16 +137,15 @@ class TestBuildpackage(ComponentTestBase): for t in tarballs: self.assertTrue(os.path.exists(t), "Tarball %s not found" % t) - @RepoFixtures.quilt30 + @RepoFixtures.quilt30() def test_export_dir_buildpackage(self, repo): """Test that building with a export dir works""" self._test_buildpackage(repo, ['--git-export-dir=../foo/bar']) ok_(os.path.exists('../foo/bar')) - @RepoFixtures.native + @RepoFixtures.native() def test_argument_quoting(self, repo): """Test that we quote arguments to builder (#)""" - os.chdir('git-buildpackage') with open('../arg with spaces', 'w'): pass # We use ls as builder to look for a file with spaces. This @@ -159,7 +157,7 @@ class TestBuildpackage(ComponentTestBase): '../arg with spaces']) ok_(ret == 0, "Building the package failed") - @RepoFixtures.quilt30 + @RepoFixtures.quilt30() def test_tarball_default_compression(self, repo): """Test that we use defaults for compression if not given (#820846)""" self._test_buildpackage(repo, ['--git-no-pristine-tar']) |