add fake request to acl_read tests

This commit is contained in:
Frédéric Péters 2014-01-03 17:01:43 +01:00
parent d78b4cae58
commit 1177168e48
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import shutil
import tempfile
from quixote import cleanup
from wcs.qommon.http_request import HTTPRequest
from wcs import formdef, publisher
from wcs.formdef import FormDef
@ -19,6 +20,9 @@ def setup_module(module):
publisher.WcsPublisher.APP_DIR = tempfile.mkdtemp()
pub = publisher.WcsPublisher.create_publisher()
req = HTTPRequest(None, {})
pub._set_request(req)
user = pub.user_class(name='user')
user.id = 'user'
users[user.id] = user