# HG changeset patch # User Adrien Di Mascio # Date 1253727764 -7200 # Node ID ad1cddc06997882d26e61a679b1d76c80279a747 # Parent e2572c9ca3ec2324645843bc95a3cca94ac7f739 [testlib] added some new required attributes on FakeRequest, fix dummy NameError diff -r e2572c9ca3ec -r ad1cddc06997 devtools/fake.py --- a/devtools/fake.py Wed Sep 23 19:41:19 2009 +0200 +++ b/devtools/fake.py Wed Sep 23 19:42:44 2009 +0200 @@ -47,6 +47,8 @@ super(FakeRequest, self).__init__(*args, **kwargs) self._session_data = {} self._headers = {} + self.config = self.vreg.config + self.schema = self.vreg.schema def header_accept_language(self): """returns an ordered list of preferred languages""" diff -r e2572c9ca3ec -r ad1cddc06997 devtools/testlib.py --- a/devtools/testlib.py Wed Sep 23 19:41:19 2009 +0200 +++ b/devtools/testlib.py Wed Sep 23 19:42:44 2009 +0200 @@ -438,7 +438,7 @@ continue views = [view for view in views if view.category != 'startupview' - and not issubclass(view, NotificationView)] + and not issubclass(view, notification.NotificationView)] if views: try: view = viewsvreg._select_best(views, req, rset=rset)