From 9678514906ef6c7ba43b39c97cc1de12669cb5d0 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 7 Jan 2016 07:32:03 -0500 Subject: [PATCH] correctly use parametrize on the test method Signed-off-by: Alfredo Deza --- ceph-pr-commits/build/test_commits.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.39.5