summaryrefslogtreecommitdiffhomepage
path: root/tests/04_test_submodules.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-02-13 08:11:09 +0100
committerGuido Günther <agx@sigxcpu.org>2017-02-13 20:08:22 +0100
commitec9f9135f5c31a3f52d342e2faac2b44647709dc (patch)
treee5cb43303868cb7e89a1dd4466444192d5b3f244 /tests/04_test_submodules.py
parent98e736dda22a5aa2b4bd9007d40dcf3927207533 (diff)
Pass source pkg around instead of changelog
This gives us more control since we have the full source package information and increases readability. Git-Dch: Ignore
Diffstat (limited to 'tests/04_test_submodules.py')
-rw-r--r--tests/04_test_submodules.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/04_test_submodules.py b/tests/04_test_submodules.py
index fcd00bad..b0b08f8a 100644
--- a/tests/04_test_submodules.py
+++ b/tests/04_test_submodules.py
@@ -124,13 +124,18 @@ def test_dump_tree():
def test_create_tarballs():
"""Create an upstream tarball"""
+ class source:
+ def __init__(self, version):
+ self.name = 'test'
+ self.upstream_version = version
+ self.changelog = {"Source": "test", "Upstream-Version": version}
# Tarball with submodules
- changelog = {"Source": "test", "Upstream-Version": "0.1"}
- ok_(buildpackage.git_archive(REPO, changelog, str(TMPDIR), "HEAD", "bzip2",
+ s = source('0.1')
+ ok_(buildpackage.git_archive(REPO, s, str(TMPDIR), "HEAD", "bzip2",
9, True))
# Tarball without submodules
- changelog = {"Source": "test", "Upstream-Version": "0.2"}
- ok_(buildpackage.git_archive(REPO, changelog, str(TMPDIR), "HEAD", "bzip2",
+ s = source('0.2')
+ ok_(buildpackage.git_archive(REPO, s, str(TMPDIR), "HEAD", "bzip2",
9, False))