def test_nipsa_factory(pyramid_request): svc = nipsa_factory(None, pyramid_request) assert isinstance(svc, NipsaService) assert svc.session == pyramid_request.db
def test_nipsa_factory(pyramid_request, search_index): svc = nipsa_factory(None, pyramid_request) assert isinstance(svc, NipsaService) assert svc.session == pyramid_request.db assert svc._get_search_index() == search_index