This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from abc import ABC, abstractmethod | |
from logging import getLogger | |
from typing import Dict, Union, List, Set, TypeVar, Tuple, Optional | |
from django.contrib.auth.models import User | |
from django.core.exceptions import PermissionDenied | |
from voteit.core import signals | |
from voteit.core.component import FactoryRegistry | |
logger = getLogger(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from pyramid import testing | |
from pyramid.authorization import ACLAuthorizationPolicy | |
from pyramid.security import Allow, DENY_ALL | |
from pyramid.authentication import SessionAuthenticationPolicy | |
from pyramid.testing import DummySession | |
EDIT = 'edit' |