Commit add0f27d authored by Nicolas Delaby's avatar Nicolas Delaby

Update Preference in test, change testing methods

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27930 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 771b276d
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2004 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2004 Nexedi SARL and Contributors. All Rights Reserved.
...@@ -118,6 +119,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -118,6 +119,7 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pref.setPreferredOoodocServerPortNumber(conversion_server_host[1]) default_pref.setPreferredOoodocServerPortNumber(conversion_server_host[1])
default_pref.setPreferredDocumentFileNameRegularExpression(FILE_NAME_REGULAR_EXPRESSION) default_pref.setPreferredDocumentFileNameRegularExpression(FILE_NAME_REGULAR_EXPRESSION)
default_pref.setPreferredDocumentReferenceRegularExpression(REFERENCE_REGULAR_EXPRESSION) default_pref.setPreferredDocumentReferenceRegularExpression(REFERENCE_REGULAR_EXPRESSION)
default_pref.setPreferredConversionCacheFactory('document_cache_factory')
if default_pref.getPreferenceState() != 'global': if default_pref.getPreferenceState() != 'global':
default_pref.enable() default_pref.enable()
...@@ -192,12 +194,12 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -192,12 +194,12 @@ class TestDocument(ERP5TypeTestCase, ZopeTestCase.Functional):
""" """
if not run: return if not run: return
printAndLog('\nTest Has Everything ') printAndLog('\nTest Has Everything ')
self.failUnless(self.getCategoryTool()!=None) self.assertNotEqual(self.getCategoryTool(), None)
self.failUnless(self.getSimulationTool()!=None) self.assertNotEqual(self.getSimulationTool(), None)
self.failUnless(self.getTypeTool()!=None) self.assertNotEqual(self.getTypeTool(), None)
self.failUnless(self.getSQLConnection()!=None) self.assertNotEqual(self.getSQLConnection(), None)
self.failUnless(self.getCatalogTool()!=None) self.assertNotEqual(self.getCatalogTool(), None)
self.failUnless(self.getWorkflowTool()!=None) self.assertNotEqual(self.getWorkflowTool(), None)
def test_02_RevisionSystem(self,quiet=QUIET,run=RUN_ALL_TEST): def test_02_RevisionSystem(self,quiet=QUIET,run=RUN_ALL_TEST):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment