Esempio n. 1
0
 def test_includeme_request(self):
     settings = {
         'skosprovider.skosregistry_location':
         'request',
         'skosprovider.skosregistry_factory':
         'tests.test_varia._skosregis_factory_request'
     }
     self.config = testing.setUp(settings=settings)
     includeme(self.config)
 def test_directive_was_added(self):
     includeme(self.config)
     SR = self.config.get_skos_registry()
     self.assertIsInstance(SR, Registry)
 def test_includeme(self):
     includeme(self.config)
     SR = self.config.registry.queryUtility(ISkosRegistry)
     self.assertIsInstance(SR, Registry)
Esempio n. 4
0
 def test_directive_was_added(self):
     includeme(self.config)
     SR = self.config.get_skos_registry()
     self.assertIsInstance(SR, Registry)
Esempio n. 5
0
 def test_includeme(self):
     includeme(self.config)
     SR = self.config.registry.queryUtility(ISkosRegistry)
     self.assertIsInstance(SR, Registry)