diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2012-11-27 17:49:23 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-01-16 06:10:34 +0100 |
commit | ab7a73283b8e02263b4c6e17b107f964fe958f45 (patch) | |
tree | 82b54c0dd13a17bce78f23362f08cfdf802eb93c /tests/13_test_gbp_pq.py | |
parent | 4bdfe2a69c286fb299f67c02f4f5ac50b83dd070 (diff) | |
download | git-buildpackage-ab7a73283b8e02263b4c6e17b107f964fe958f45.tar.gz git-buildpackage-ab7a73283b8e02263b4c6e17b107f964fe958f45.tar.bz2 git-buildpackage-ab7a73283b8e02263b4c6e17b107f964fe958f45.zip |
pq: do author guessing outside the apply_patch functions
Call the author parsing/guessing function outside the apply patch
functions. This way, the caller can decide when to do the guessing, and
with which parameters. Now the apply_patch functions do what their name
suggests.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests/13_test_gbp_pq.py')
-rw-r--r-- | tests/13_test_gbp_pq.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/13_test_gbp_pq.py b/tests/13_test_gbp_pq.py index 83b43156..bcfb9bc7 100644 --- a/tests/13_test_gbp_pq.py +++ b/tests/13_test_gbp_pq.py @@ -69,8 +69,8 @@ class TestApplyAndCommit(testutils.DebianGitTestRepo): self.add_file("debian/control", "Maintainer: Guido Günther <gg@godiug.net>") - c = pq.get_maintainer_from_control - pq.apply_and_commit_patch(self.repo, patch, c) + maintainer = pq.get_maintainer_from_control(self.repo) + pq.apply_and_commit_patch(self.repo, patch, maintainer) info = self.repo.get_commit_info('HEAD') self.assertEqual(info['author'].email, 'gg@godiug.net') self.assertIn('foo', self.repo.list_files()) |