devtools/fake.py
changeset 8276 57d8f3b3e165
parent 8216 99ff746e8de8
child 8314 cfd6ab461849
equal deleted inserted replaced
8275:49e105e000ab 8276:57d8f3b3e165
    31 
    31 
    32 
    32 
    33 class FakeConfig(dict, BaseApptestConfiguration):
    33 class FakeConfig(dict, BaseApptestConfiguration):
    34     translations = {}
    34     translations = {}
    35     uiprops = {}
    35     uiprops = {}
       
    36     https_uiprops = {}
    36     apphome = None
    37     apphome = None
    37     debugmode = False
    38     debugmode = False
    38     def __init__(self, appid='data', apphome=None, cubes=()):
    39     def __init__(self, appid='data', apphome=None, cubes=()):
    39         self.appid = appid
    40         self.appid = appid
    40         self.apphome = apphome
    41         self.apphome = apphome
    42         self['auth-mode'] = 'cookie'
    43         self['auth-mode'] = 'cookie'
    43         self['uid'] = None
    44         self['uid'] = None
    44         self['base-url'] = BASE_URL
    45         self['base-url'] = BASE_URL
    45         self['rql-cache-size'] = 3000
    46         self['rql-cache-size'] = 3000
    46         self.datadir_url = BASE_URL + 'data/'
    47         self.datadir_url = BASE_URL + 'data/'
       
    48         self.https_datadir_url = (BASE_URL + 'data/').replace('http://', 'https://')
    47 
    49 
    48     def cubes(self, expand=False):
    50     def cubes(self, expand=False):
    49         return self._cubes
    51         return self._cubes
    50 
    52 
    51     def sources(self):
    53     def sources(self):