expose Session on pytest namespace
This commit is contained in:
parent
196cece338
commit
f684a9ed56
|
@ -46,7 +46,8 @@ def pytest_addoption(parser):
|
|||
|
||||
|
||||
def pytest_namespace():
|
||||
return dict(collect=dict(Item=Item, Collector=Collector, File=File))
|
||||
collect = dict(Item=Item, Collector=Collector, File=File, Session=Session)
|
||||
return dict(collect=collect)
|
||||
|
||||
def pytest_configure(config):
|
||||
py.test.config = config # compatibiltiy
|
||||
|
|
Loading…
Reference in New Issue