Exemplo n.º 1
0
 def load_fake(self):
     self.view.etherpad = fake.FakeEtherpad()
     self.view.embed_settings = fake.FakeEtherpadEmbedSettings()
     self.view.etherpad_settings = fake.FakeEtherpadSettings()
     self.view.portal_state = fake.FakePortalState()
     self.view.portal_registry = fake.FakeRegistry()
     self.view.padName = 'UUID03295830259'
     self.view.authorMapper = 'toutpt'
     self.view._portal = fake.FakePortal()
Exemplo n.º 2
0
 def load_fake(self):
     self.view.etherpad = fake.FakeEtherpad()
     self.view.embed_settings = fake.FakeEtherpadEmbedSettings()
     self.view.etherpad_settings = fake.FakeEtherpadSettings()
     self.view.portal_state = fake.FakePortalState()
     self.view.portal_registry = fake.FakeRegistry()
     self.view.padName = 'UUID03295830259'
     self.view.authorMapper = 'toutpt'
     self.view.form_instance = fake.FakeEtherpadSyncForm()
     self.view._portal = fake.FakePortal()
     #        self.view.model = fake.FakeModel
     self.view.dexterity_fti = fake.FakeFTI(fake.FakeModel)
Exemplo n.º 3
0
 def load_fake(self):
     self.api._registry = fake.FakeRegistry()
     self.api._settings = fake.FakeEtherpadSettings()
     self.api._portal_url = "http://nohost.com"