@fixture(scope='session')
def pytestconfig(request):
 return request.config

@ fixture ( scope = 'session' ) def pytestconfig ( request ) : return request . config
the pytest config object with access to command line opts .