예제 #1
0
def org_svc(pyramid_request):
    return organization_factory(None, pyramid_request)
예제 #2
0
    def test_provides_request_db_as_session(self, pyramid_request):
        svc = organization_factory(None, pyramid_request)

        assert svc.session == pyramid_request.db
예제 #3
0
    def test_returns_organizations_service(self, pyramid_request):
        svc = organization_factory(None, pyramid_request)

        assert isinstance(svc, OrganizationService)
예제 #4
0
    def test_provides_request_db_as_session(self, pyramid_request):
        svc = organization_factory(None, pyramid_request)

        assert svc.session == pyramid_request.db
예제 #5
0
    def test_returns_organizations_service(self, pyramid_request):
        svc = organization_factory(None, pyramid_request)

        assert isinstance(svc, OrganizationService)
예제 #6
0
def org_svc(pyramid_request):
    return organization_factory(None, pyramid_request)