expose Session on pytest namespace

This commit is contained in:
Benjamin Peterson 2011-05-26 18:58:31 -05:00
parent 196cece338
commit f684a9ed56
1 changed files with 2 additions and 1 deletions

View File

@ -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