Merge pull request #1718 from blueyed/fix-funcarg_prefix_warning
Add punctuation to funcarg_prefix_warning
This commit is contained in:
commit
dd5ce96cd7
|
@ -864,11 +864,12 @@ def yield_fixture(scope="function", params=None, autouse=False, ids=None, name=N
|
|||
else:
|
||||
return FixtureFunctionMarker(scope, params, autouse, ids=ids, name=name)
|
||||
|
||||
defaultfuncargprefixmarker = fixture()
|
||||
funcarg_prefix_warning = '{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated ' \
|
||||
'and scheduled to be removed in pytest 4.0.\n' \
|
||||
'remove the prefix and use the @pytest.fixture decorator instead'
|
||||
|
||||
defaultfuncargprefixmarker = fixture()
|
||||
funcarg_prefix_warning = (
|
||||
'{name}: declaring fixtures using "pytest_funcarg__" prefix is deprecated '
|
||||
'and scheduled to be removed in pytest 4.0.\n'
|
||||
'Please remove the prefix and use the @pytest.fixture decorator instead.')
|
||||
|
||||
|
||||
@fixture(scope="session")
|
||||
|
@ -877,8 +878,6 @@ def pytestconfig(request):
|
|||
return request.config
|
||||
|
||||
|
||||
|
||||
|
||||
class FixtureManager:
|
||||
"""
|
||||
pytest fixtures definitions and information is stored and managed
|
||||
|
|
Loading…
Reference in New Issue