From ab7a73283b8e02263b4c6e17b107f964fe958f45 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 27 Nov 2012 17:49:23 +0200 Subject: 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 --- tests/13_test_gbp_pq.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/13_test_gbp_pq.py') diff --git a/tests/13_test_gbp_pq.py b/tests/13_test_gbp_pq.py index 83b4315..bcfb9bc 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 ") - 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()) -- cgit v1.2.3