def test_it_returns_flag_service(self, pyramid_request): svc = flag.flag_service_factory(None, pyramid_request) assert isinstance(svc, flag.FlagService)
def test_it_provides_request_db_as_session(self, pyramid_request): svc = flag.flag_service_factory(None, pyramid_request) assert svc.session == pyramid_request.db
def test_it_provides_request_db_as_session(self, pyramid_request): svc = flag.flag_service_factory(None, pyramid_request) assert svc.session == pyramid_request.db
def test_it_returns_flag_service(self, pyramid_request): svc = flag.flag_service_factory(None, pyramid_request) assert isinstance(svc, flag.FlagService)