summaryrefslogtreecommitdiff
path: root/testing/test_config.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_config.py
parent701998bf2c9e91e8b153ef237c96c31294b8b8c7 (diff)
downloadpytest-b8471aa527ab1a21ee66f24e5c23a9773b5b0793.tar.gz
testing: fix some docstring issues
In preparation for enforcing some docstring lints.
Diffstat (limited to 'testing/test_config.py')
-rw-r--r--testing/test_config.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/testing/test_config.py b/testing/test_config.py
index 9b1c11d5e..26d2a3ef0 100644
--- a/testing/test_config.py
+++ b/testing/test_config.py
@@ -47,7 +47,7 @@ class TestParseIni:
assert config.inicfg["name"] == "value"
def test_getcfg_empty_path(self):
- """correctly handle zero length arguments (a la pytest '')"""
+ """Correctly handle zero length arguments (a la pytest '')."""
locate_config([""])
def test_setupcfg_uses_toolpytest_with_pytest(self, testdir):
@@ -1006,8 +1006,8 @@ def test_cmdline_processargs_simple(testdir):
def test_invalid_options_show_extra_information(testdir):
- """display extra information when pytest exits due to unrecognized
- options in the command-line"""
+ """Display extra information when pytest exits due to unrecognized
+ options in the command-line."""
testdir.makeini(
"""
[pytest]
@@ -1441,7 +1441,7 @@ class TestOverrideIniArgs:
)
def test_addopts_from_ini_not_concatenated(self, testdir):
- """addopts from ini should not take values from normal args (#4265)."""
+ """`addopts` from ini should not take values from normal args (#4265)."""
testdir.makeini(
"""
[pytest]
@@ -1777,10 +1777,8 @@ class TestPytestPluginsVariable:
def test_conftest_import_error_repr(tmpdir):
- """
- ConftestImportFailure should use a short error message and readable path to the failed
- conftest.py file
- """
+ """`ConftestImportFailure` should use a short error message and readable
+ path to the failed conftest.py file."""
path = tmpdir.join("foo/conftest.py")
with pytest.raises(
ConftestImportFailure,