[py-svn] pytest-coverage commit 96ecb90a1f36: Fixed tests by correcting options passed

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Feb 25 15:24:57 CET 2010


# HG changeset patch -- Bitbucket.org
# Project pytest-coverage
# URL http://bitbucket.org/prologic/pytest-coverage/overview/
# User prologic
# Date 1267107292 -36000
# Node ID 96ecb90a1f3646debe2d0b5e783618a29ced4a37
# Parent  ffd3f4e234bd1bb7b17d0a626874c0182d487cbe
Fixed tests by correcting options passed

--- a/test_pytest_coverage.py
+++ b/test_pytest_coverage.py
@@ -12,8 +12,12 @@ def test_functional(testdir):
         def test_whatever():
             pass
         """)
-    result = testdir.runpytest('--cover-action=report')
+    result = testdir.runpytest('--cover=test_functional --cover-report=report')
     assert result.ret == 0
+    print
+    print type(result.stdout)
+    print repr(result.stdout)
+    print
     assert result.stdout.fnmatch_lines([
         '*Processing Coverage*',
         'test_functional*4*3*75%*',
@@ -30,7 +34,6 @@ def test_coverage_is_not_imported(testdi
     assert result.stdout.fnmatch_lines([
         '*1 passed*',
         ])
-    #print result.stdout.str()
 
 def test_cover_package(testdir):
     testdir.makepyfile("""
@@ -39,8 +42,8 @@ def test_cover_package(testdir):
         def test_whatever():
             pass
         """)
-    result = testdir.runpytest('--cover-package=test_cover_package',
-            '--cover-action=report')
+    result = testdir.runpytest('--cover=test_cover_package',
+            '--cover-report=report')
     assert result.ret == 0
     assert result.stdout.fnmatch_lines([
         '*Processing Coverage*',



More information about the pytest-commit mailing list