devtools/fake.py
changeset 8816 fe321c0f6d13
parent 8562 0d2fb4604265
child 8930 6a02be304486
equal deleted inserted replaced
8815:18022ed7c7a5 8816:fe321c0f6d13
   161             def __exit__(self, exctype, exc, traceback): pass
   161             def __exit__(self, exctype, exc, traceback): pass
   162         return FakeCM()
   162         return FakeCM()
   163 
   163 
   164     # for use with enabled_security context manager
   164     # for use with enabled_security context manager
   165     read_security = write_security = True
   165     read_security = write_security = True
   166     def init_security(self, *args):
       
   167         return None, None
       
   168     def reset_security(self, *args):
       
   169         return
       
   170 
   166 
   171 class FakeRepo(object):
   167 class FakeRepo(object):
   172     querier = None
   168     querier = None
   173     def __init__(self, schema, vreg=None, config=None):
   169     def __init__(self, schema, vreg=None, config=None):
   174         self.extids = {}
   170         self.extids = {}