From: Alfredo Deza Date: Thu, 7 Jan 2016 12:32:03 +0000 (-0500) Subject: correctly use parametrize on the test method X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9678514906ef6c7ba43b39c97cc1de12669cb5d0;p=ceph-build.git correctly use parametrize on the test method Signed-off-by: Alfredo Deza --- diff --git a/ceph-pr-commits/build/test_commits.py b/ceph-pr-commits/build/test_commits.py index e631d8b4..bbb5efa0 100644 --- a/ceph-pr-commits/build/test_commits.py +++ b/ceph-pr-commits/build/test_commits.py @@ -1,5 +1,6 @@ from subprocess import Popen, PIPE import os +import pytest def run(command): @@ -37,7 +38,8 @@ commits = get_commits() class TestSignedOffByCommits(object): - def test_signed_off_by('commit', commits): + @pytest.mark.parametrize('commit', commits) + def test_signed_off_by(self, commit): assert 'Signed-off-by:' in commit def extract_sha(self, lines):