Commit 83c3dff8 authored by Łukasz Nowak's avatar Łukasz Nowak

- cleanup imports

 - cleanup non used variables


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43428 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 44edfb63
...@@ -31,7 +31,6 @@ import unittest ...@@ -31,7 +31,6 @@ import unittest
import os import os
import transaction import transaction
from zLOG import LOG
from Testing import ZopeTestCase from Testing import ZopeTestCase
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
...@@ -39,10 +38,8 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import install_product_quiet ...@@ -39,10 +38,8 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import install_product_quiet
from Products.ERP5Type.tests.ERP5TypeTestCase import _getConversionServerDict from Products.ERP5Type.tests.ERP5TypeTestCase import _getConversionServerDict
from Products.ERP5Type.tests.Sequence import SequenceList from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5OOo.OOoUtils import OOoParser from Products.ERP5OOo.OOoUtils import OOoParser
from Products.ERP5.Document.Document import ConversionError
from Products.ERP5Form.PreferenceTool import Priority from Products.ERP5Form.PreferenceTool import Priority
from DateTime import DateTime from DateTime import DateTime
import transaction
ZopeTestCase.installProduct('Sessions', quiet=install_product_quiet) ZopeTestCase.installProduct('Sessions', quiet=install_product_quiet)
...@@ -737,7 +734,7 @@ class TestOOoImport(TestOOoImportMixin): ...@@ -737,7 +734,7 @@ class TestOOoImport(TestOOoImportMixin):
def test_CategoryTool_importCategoryFileDeletionSupport(self): def test_CategoryTool_importCategoryFileDeletionSupport(self):
# tests simple use of CategoryTool_importCategoryFile script # tests simple use of CategoryTool_importCategoryFile script
region = self.portal.portal_categories.region region = self.portal.portal_categories.region
dummy_region = region.newContent(id='dummy_region') region.newContent(id='dummy_region')
transaction.commit() transaction.commit()
self.tic() self.tic()
self.portal.portal_categories.CategoryTool_importCategoryFile( self.portal.portal_categories.CategoryTool_importCategoryFile(
...@@ -759,7 +756,7 @@ class TestOOoImport(TestOOoImportMixin): ...@@ -759,7 +756,7 @@ class TestOOoImport(TestOOoImportMixin):
def test_CategoryTool_importCategoryFileExpirationSupport(self): def test_CategoryTool_importCategoryFileExpirationSupport(self):
# tests simple use of CategoryTool_importCategoryFile script # tests simple use of CategoryTool_importCategoryFile script
region = self.portal.portal_categories.region region = self.portal.portal_categories.region
dummy_region = region.newContent(id='dummy_region') region.newContent(id='dummy_region')
transaction.commit() transaction.commit()
self.tic() self.tic()
self.portal.portal_categories.CategoryTool_importCategoryFile( self.portal.portal_categories.CategoryTool_importCategoryFile(
...@@ -1040,7 +1037,7 @@ class TestOOoImportWeb(TestOOoImportMixin): ...@@ -1040,7 +1037,7 @@ class TestOOoImportWeb(TestOOoImportMixin):
"""Import category file with expiration request, and do it again to be """Import category file with expiration request, and do it again to be
sure that expired categories will not be expired again.""" sure that expired categories will not be expired again."""
region = self.portal.portal_categories.region region = self.portal.portal_categories.region
dummy_region = region.newContent(id='dummy_region') region.newContent(id='dummy_region')
dummy_expired_region = region.newContent(id='dummy_expired_region') dummy_expired_region = region.newContent(id='dummy_expired_region')
dummy_expired_region.expire() dummy_expired_region.expire()
transaction.commit() transaction.commit()
......
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