slightly improve -k help string
cosmetic change to test_nose.py
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ def pytest_namespace():
|
|||||||
def pytest_addoption(parser):
|
def pytest_addoption(parser):
|
||||||
group = parser.getgroup("general")
|
group = parser.getgroup("general")
|
||||||
group._addoption('-k',
|
group._addoption('-k',
|
||||||
action="store", dest="keyword", default='', metavar="KEYWORDEXPR",
|
action="store", dest="keyword", default='', metavar="EXPRESSION",
|
||||||
help="only run tests which match the given expression. "
|
help="only run tests which match the given substring expression. "
|
||||||
"An expression is a python evaluatable expression "
|
"An expression is a python evaluatable expression "
|
||||||
"where all names are substring-matched against test names "
|
"where all names are substring-matched against test names "
|
||||||
"and keywords. Example: -k 'test_method or test_other' "
|
"and keywords. Example: -k 'test_method or test_other' "
|
||||||
|
|||||||
@@ -304,8 +304,9 @@ def test_apiwrapper_problem_issue260(testdir):
|
|||||||
result = testdir.runpytest()
|
result = testdir.runpytest()
|
||||||
result.stdout.fnmatch_lines("*1 passed*")
|
result.stdout.fnmatch_lines("*1 passed*")
|
||||||
|
|
||||||
|
@pytest.mark.skipif("sys.version_info < (2,6)")
|
||||||
def test_setup_teardown_linking_issue265(testdir):
|
def test_setup_teardown_linking_issue265(testdir):
|
||||||
# we accidnetially didnt integrate nose setupstate with normal setupstate
|
# we accidentally didnt integrate nose setupstate with normal setupstate
|
||||||
# this test ensures that won't happen again
|
# this test ensures that won't happen again
|
||||||
testdir.makepyfile('''
|
testdir.makepyfile('''
|
||||||
import pytest
|
import pytest
|
||||||
@@ -314,7 +315,8 @@ def test_setup_teardown_linking_issue265(testdir):
|
|||||||
def test_nothing(self):
|
def test_nothing(self):
|
||||||
"""Tests the API of the implementation (for generic and specialized)."""
|
"""Tests the API of the implementation (for generic and specialized)."""
|
||||||
|
|
||||||
@pytest.mark.skipif("True", reason="Skip tests to check if teardown is skipped as well.")
|
@pytest.mark.skipif("True", reason=
|
||||||
|
"Skip tests to check if teardown is skipped as well.")
|
||||||
class TestSkipTeardown(TestGeneric):
|
class TestSkipTeardown(TestGeneric):
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user