diff options
author | holger krekel <holger@merlinux.eu> | 2010-11-17 22:12:16 +0100 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2010-11-17 22:12:16 +0100 |
commit | a698465487a9cd92e8223d7f9be0e7710272f8ca (patch) | |
tree | ca2c9641dec4e2343dd4206d4c713bc196fa1dc3 /testing/test_pastebin.py | |
parent | 93a436542c69ea27cd1799266bb49f3f6d4fe7a2 (diff) | |
download | pytest-a698465487a9cd92e8223d7f9be0e7710272f8ca.tar.gz |
streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*".
Diffstat (limited to 'testing/test_pastebin.py')
-rw-r--r-- | testing/test_pastebin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/test_pastebin.py b/testing/test_pastebin.py index c3403ed7a..cc23d0e25 100644 --- a/testing/test_pastebin.py +++ b/testing/test_pastebin.py @@ -12,13 +12,13 @@ class TestPasting: def test_failed(self, testdir, pastebinlist): testpath = testdir.makepyfile(""" - import py + import pytest def test_pass(): pass def test_fail(): assert 0 def test_skip(): - py.test.skip("") + pytest.skip("") """) reprec = testdir.inline_run(testpath, "--paste=failed") assert len(pastebinlist) == 1 @@ -29,13 +29,13 @@ class TestPasting: def test_all(self, testdir, pastebinlist): testpath = testdir.makepyfile(""" - import py + import pytest def test_pass(): pass def test_fail(): assert 0 def test_skip(): - py.test.skip("") + pytest.skip("") """) reprec = testdir.inline_run(testpath, "--pastebin=all") assert reprec.countoutcomes() == [1,1,1] |