devtools/fake.py
changeset 3675 5d143781a604
parent 3653 ef71abb1e77b
child 4252 6c4f109c2b03
equal deleted inserted replaced
3674:387d51af966d 3675:5d143781a604
    45         kwargs['https'] = False
    45         kwargs['https'] = False
    46         self._url = kwargs.pop('url', 'view?rql=Blop&vid=blop')
    46         self._url = kwargs.pop('url', 'view?rql=Blop&vid=blop')
    47         super(FakeRequest, self).__init__(*args, **kwargs)
    47         super(FakeRequest, self).__init__(*args, **kwargs)
    48         self._session_data = {}
    48         self._session_data = {}
    49         self._headers = {}
    49         self._headers = {}
    50         self.config = self.vreg.config
       
    51         self.schema = self.vreg.schema
       
    52 
    50 
    53     def header_accept_language(self):
    51     def header_accept_language(self):
    54         """returns an ordered list of preferred languages"""
    52         """returns an ordered list of preferred languages"""
    55         return ('en',)
    53         return ('en',)
    56 
    54