]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
correctly use parametrize on the test method 280/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 7 Jan 2016 12:32:03 +0000 (07:32 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 7 Jan 2016 12:32:03 +0000 (07:32 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-pr-commits/build/test_commits.py

index e631d8b432635c574e53398d2f7f6e034a0e3167..bbb5efa03a02386461f541142515c3a19fcf1ea9 100644 (file)
@@ -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):