remove pytest_namespace from _pytest.fixtures
This commit is contained in:
parent
ae234786ea
commit
23bc9815c4
|
@ -19,6 +19,11 @@ from _pytest.compat import (
|
||||||
)
|
)
|
||||||
|
|
||||||
def pytest_sessionstart(session):
|
def pytest_sessionstart(session):
|
||||||
|
scopename2class.update({
|
||||||
|
'class': pytest.Class,
|
||||||
|
'module': pytest.Module,
|
||||||
|
'function': pytest.Item,
|
||||||
|
})
|
||||||
session._fixturemanager = FixtureManager(session)
|
session._fixturemanager = FixtureManager(session)
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,15 +50,6 @@ def scopeproperty(name=None, doc=None):
|
||||||
return decoratescope
|
return decoratescope
|
||||||
|
|
||||||
|
|
||||||
def pytest_namespace():
|
|
||||||
scopename2class.update({
|
|
||||||
'class': pytest.Class,
|
|
||||||
'module': pytest.Module,
|
|
||||||
'function': pytest.Item,
|
|
||||||
})
|
|
||||||
return {}
|
|
||||||
|
|
||||||
|
|
||||||
def get_scope_node(node, scope):
|
def get_scope_node(node, scope):
|
||||||
cls = scopename2class.get(scope)
|
cls = scopename2class.get(scope)
|
||||||
if cls is None:
|
if cls is None:
|
||||||
|
|
Loading…
Reference in New Issue