diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-17 14:55:14 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-17 14:55:14 -0500 |
commit | e5d90dcdabb5e9d59f6957ce92b72e36b27c3265 (patch) | |
tree | c53ac3eaf8dca2c4e808fc4fcecd07c02c07788e /tests/test_api.py | |
parent | 880a71c0c26a0c22294af1859699db78711d65c0 (diff) | |
download | python-coveragepy-e5d90dcdabb5e9d59f6957ce92b72e36b27c3265.tar.gz |
Use file names with extensions in reports.
Diffstat (limited to 'tests/test_api.py')
-rw-r--r-- | tests/test_api.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 08f4e05..00f6dbe 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -57,9 +57,9 @@ class SingletonApiTest(CoverageTest): self.do_report_work("mycode2") coverage.report(["mycode2.py"]) self.assertEqual(self.stdout(), textwrap.dedent("""\ - Name Stmts Miss Cover Missing - --------------------------------------- - mycode2 7 3 57% 4-6 + Name Stmts Miss Cover Missing + ------------------------------------------ + mycode2.py 7 3 57% 4-6 """)) def test_report_file(self): @@ -69,9 +69,9 @@ class SingletonApiTest(CoverageTest): coverage.report(["mycode3.py"], file=fout) self.assertEqual(self.stdout(), "") self.assertEqual(fout.getvalue(), textwrap.dedent("""\ - Name Stmts Miss Cover Missing - --------------------------------------- - mycode3 7 3 57% 4-6 + Name Stmts Miss Cover Missing + ------------------------------------------ + mycode3.py 7 3 57% 4-6 """)) def test_report_default(self): @@ -79,7 +79,7 @@ class SingletonApiTest(CoverageTest): self.do_report_work("mycode4") coverage.report() rpt = re.sub(r"\s+", " ", self.stdout()) - self.assertIn("mycode4 7 3 57% 4-6", rpt) + self.assertIn("mycode4.py 7 3 57% 4-6", rpt) class ApiTest(CoverageTest): @@ -571,9 +571,9 @@ class PluginTest(CoverageTest): cov.save() cov.report(["no_biggie.py"]) self.assertEqual(self.stdout(), textwrap.dedent("""\ - Name Stmts Miss Cover Missing - ----------------------------------------- - no_biggie 4 1 75% 4 + Name Stmts Miss Cover Missing + -------------------------------------------- + no_biggie.py 4 1 75% 4 """)) def test_nose_plugin(self): |