def setUp(test): setup.placefulSetUp(True) setUpDublinCore() component.provideAdapter(storage.Storage) component.provideAdapter(AttributeAnnotations) hooks.setHooks() setup.setUpTraversal() setup.setUpSiteManagerLookup() setup.setUpTestAsModule(test, 'zojax.content.model.README') # generate extension ExtensionClass = ExtensionType( "content.model", IViewModelExtension, ViewModelExtension, "View Model", "View model extension.", layer=interface.Interface) # register adater component.provideAdapter( Wrapper(ExtensionClass), (interface.Interface, interface.Interface, ExtensionMarker), IViewModelExtension) # register vocabulary getVocabularyRegistry().register( 'zojax.content.model-list', Models()) component.provideAdapter( Renderer, (IViewModelSupport, interface.Interface), interface.Interface, name='index.html')
def setUp(test): cleanup.setUp() component.provideAdapter(AttributeAnnotations) testing.setUpDublinCore()