diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-02-13 08:11:09 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-02-13 20:08:22 +0100 |
commit | ec9f9135f5c31a3f52d342e2faac2b44647709dc (patch) | |
tree | e5cb43303868cb7e89a1dd4466444192d5b3f244 /tests/04_test_submodules.py | |
parent | 98e736dda22a5aa2b4bd9007d40dcf3927207533 (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.py | 13 |
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)) |