summaryrefslogtreecommitdiff
path: root/testing/test_runner.py
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-07-18 12:35:13 +0300
committerRan Benita <ran@unusedvar.com>2020-08-03 10:10:43 +0300
commitb8471aa527ab1a21ee66f24e5c23a9773b5b0793 (patch)
tree37dfeeea501768be711d7faefae6a1c3fcec29d1 /testing/test_runner.py
parent701998bf2c9e91e8b153ef237c96c31294b8b8c7 (diff)
downloadpytest-b8471aa527ab1a21ee66f24e5c23a9773b5b0793.tar.gz
testing: fix some docstring issues
In preparation for enforcing some docstring lints.
Diffstat (limited to 'testing/test_runner.py')
-rw-r--r--testing/test_runner.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/testing/test_runner.py b/testing/test_runner.py
index b207ccc92..b9d22370a 100644
--- a/testing/test_runner.py
+++ b/testing/test_runner.py
@@ -310,7 +310,7 @@ class BaseFunctionalTests:
assert reps[5].failed
def test_exact_teardown_issue1206(self, testdir) -> None:
- """issue shadowing error with wrong number of arguments on teardown_method."""
+ """Issue shadowing error with wrong number of arguments on teardown_method."""
rec = testdir.inline_runsource(
"""
import pytest
@@ -742,7 +742,7 @@ def test_importorskip_dev_module(monkeypatch) -> None:
def test_importorskip_module_level(testdir) -> None:
- """importorskip must be able to skip entire modules when used at module level"""
+ """`importorskip` must be able to skip entire modules when used at module level."""
testdir.makepyfile(
"""
import pytest
@@ -757,7 +757,7 @@ def test_importorskip_module_level(testdir) -> None:
def test_importorskip_custom_reason(testdir) -> None:
- """make sure custom reasons are used"""
+ """Make sure custom reasons are used."""
testdir.makepyfile(
"""
import pytest
@@ -871,9 +871,8 @@ def test_makereport_getsource_dynamic_code(testdir, monkeypatch) -> None:
def test_store_except_info_on_error() -> None:
- """ Test that upon test failure, the exception info is stored on
- sys.last_traceback and friends.
- """
+ """Test that upon test failure, the exception info is stored on
+ sys.last_traceback and friends."""
# Simulate item that might raise a specific exception, depending on `raise_error` class var
class ItemMightRaise:
nodeid = "item_that_raises"
@@ -934,9 +933,7 @@ def test_current_test_env_var(testdir, monkeypatch) -> None:
class TestReportContents:
- """
- Test user-level API of ``TestReport`` objects.
- """
+ """Test user-level API of ``TestReport`` objects."""
def getrunner(self):
return lambda item: runner.runtestprotocol(item, log=False)