def org_svc(pyramid_request): return organization_factory(None, pyramid_request)
def test_provides_request_db_as_session(self, pyramid_request): svc = organization_factory(None, pyramid_request) assert svc.session == pyramid_request.db
def test_returns_organizations_service(self, pyramid_request): svc = organization_factory(None, pyramid_request) assert isinstance(svc, OrganizationService)