[Zope-CMF] Can't get tests to run :-S
Chris Withers
chrisw@nipltd.com
Sun, 29 Jul 2001 11:48:31 +0100
This is a multi-part message in MIME format.
--------------30AB98D8BA17E0576AAE9A04
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi guys,
I think I'm doing something wrong here. When I do:
E:\Zope\2.4.0>bin\python utilities\testrunner.py -d lib\python\Products\
...I just get loads and loads of import errors and not a single test runs :-S
I've attached the full list of errors if someone can take a look.
What should I be doing to get these to pass?
cheers,
Chris
--------------30AB98D8BA17E0576AAE9A04
Content-Type: text/plain; charset=us-ascii;
name="cmffails.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="cmffails.txt"
Running: lib\python\Products\CMFCalendar\tests\test_all.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "test_all.py", line 2, in ?
from Products.CMFCalendar.tests import test_Event
File "E:\Zope\current\Products\CMFCalendar\__init__.py", line 85, in ?
from Products.CMFDefault import Portal
File "E:\Zope\current\Products\CMFDefault\__init__.py", line 90, in ?
import Portal
File "E:\Zope\current\Products\CMFDefault\Portal.py", line 86, in ?
import Globals
File "E:\Zope\242A6D~1.0\lib\python\Globals.py", line 90, in ?
import Acquisition, ComputedAttribute, App.PersistentExtra, os
File "E:\Zope\242A6D~1.0\lib\python\App\PersistentExtra.py", line 87, in ?
from Persistence import Persistent
ImportError: cannot import name Persistent
No test suite found in file:
lib\python\Products\CMFCalendar\tests\test_all.py
Running: lib\python\Products\CMFCalendar\tests\test_Event.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFCalendar\tests\test_Event.py", line 2, in ?
import Zope
File "E:\Zope\242A6D~1.0\lib\python\Zope\__init__.py", line 95, in ?
import Globals, OFS.Application, sys
File "E:\Zope\242A6D~1.0\lib\python\OFS\Application.py", line 90, in ?
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
File "E:\Zope\242A6D~1.0\lib\python\OFS\Folder.py", line 94, in ?
import Globals, SimpleItem, ObjectManager, PropertyManager
File "E:\Zope\242A6D~1.0\lib\python\OFS\SimpleItem.py", line 95, in ?
import re, sys, Globals, App.Management, Acquisition, App.Undo
File "E:\Zope\242A6D~1.0\lib\python\App\Management.py", line 93, in ?
from Dialogs import MessageDialog
File "E:\Zope\242A6D~1.0\lib\python\App\Dialogs.py", line 109, in ?
from Globals import HTML
ImportError: cannot import name HTML
No test suite found in file:
lib\python\Products\CMFCalendar\tests\test_Event.py
Running: lib\python\Products\CMFCore\tests\test_all.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFCore\tests\test_all.py", line 2, in ?
from Products.CMFCore.tests import test_ContentTypeRegistry
File "E:\Zope\current\Products\CMFCore\__init__.py", line 89, in ?
import PortalObject, PortalContent, PortalFolder
File "E:\Zope\current\Products\CMFCore\PortalObject.py", line 86, in ?
from Globals import default__class_init__
ImportError: cannot import name default__class_init__
No test suite found in file:
lib\python\Products\CMFCore\tests\test_all.py
Running: lib\python\Products\CMFCore\tests\test_ContentTypeRegistry.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFCore\tests\test_ContentTypeRegistry.py", lin
e 4, in ?
from Products.CMFCore.ContentTypeRegistry import *
File "E:\Zope\current\Products\CMFCore\ContentTypeRegistry.py", line 4, in ?
from OFS.SimpleItem import SimpleItem, Item
ImportError: cannot import name SimpleItem
No test suite found in file:
lib\python\Products\CMFCore\tests\test_ContentTypeRegistry.py
Running: lib\python\Products\CMFCore\tests\test_PortalFolder.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFCore\tests\test_PortalFolder.py", line 9, in
?
from Products.CMFCore.TypesTool import TypesTool, FactoryTypeInformation
File "E:\Zope\current\Products\CMFCore\TypesTool.py", line 93, in ?
from Globals import InitializeClass, DTMLFile
ImportError: cannot import name InitializeClass
No test suite found in file:
lib\python\Products\CMFCore\tests\test_PortalFolder.py
Running: lib\python\Products\CMFCore\tests\test_TypesTool.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFCore\tests\test_TypesTool.py", line 6, in ?
from Products.CMFCore.PortalContent import PortalContent
File "E:\Zope\current\Products\CMFCore\PortalContent.py", line 88, in ?
from Globals import InitializeClass
ImportError: cannot import name InitializeClass
No test suite found in file:
lib\python\Products\CMFCore\tests\test_TypesTool.py
Running: lib\python\Products\CMFDecor\tests\test_all.py
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Running: lib\python\Products\CMFDefault\tests\test_all.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_all.py", line 2, in ?
from Products.CMFDefault.tests import test_Discussions
File "E:\Zope\current\Products\CMFDefault\tests\test_Discussions.py", line 7,
in ?
from Products.CMFCore.CatalogTool import CatalogTool
File "E:\Zope\current\Products\CMFCore\CatalogTool.py", line 93, in ?
from utils import UniqueObject, _checkPermission, _getAuthenticatedUser
File "E:\Zope\current\Products\CMFCore\utils.py", line 92, in ?
from AccessControl.Role import gather_permissions
File "E:\Zope\242A6D~1.0\lib\python\AccessControl\Role.py", line 90, in ?
from Globals import DTMLFile, MessageDialog, Dictionary
ImportError: cannot import name DTMLFile
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_all.py
Running: lib\python\Products\CMFDefault\tests\test_Discussions.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_Discussions.py", line 7,
in ?
from Products.CMFCore.CatalogTool import CatalogTool
ImportError: cannot import name CatalogTool
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_Discussions.py
Running: lib\python\Products\CMFDefault\tests\test_Document.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_Document.py", line 2, in
?
from Products.CMFDefault.Document import Document
File "E:\Zope\current\Products\CMFDefault\Document.py", line 89, in ?
import Globals, StructuredText, string, utils
File "E:\Zope\current\Products\CMFDefault\utils.py", line 8, in ?
from Globals import package_home
ImportError: cannot import name package_home
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_Document.py
Running: lib\python\Products\CMFDefault\tests\test_Image.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_Image.py", line 3, in ?
from Products.CMFDefault.Image import Image
File "E:\Zope\current\Products\CMFDefault\Image.py", line 94, in ?
from Globals import HTMLFile, HTML
ImportError: cannot import name HTMLFile
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_Image.py
Running: lib\python\Products\CMFDefault\tests\test_join.py
E
======================================================================
ERROR: test_join (test_join.MembershipTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\Zope\current\Products\CMFDefault\tests\test_join.py", line 8, in setU
p
self.connection = Zope.DB.open()
AttributeError: 'Zope' module has no attribute 'DB'
----------------------------------------------------------------------
Ran 1 tests in 0.000s
FAILED (errors=1)
Running: lib\python\Products\CMFDefault\tests\test_MetadataTool.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_MetadataTool.py", line 4,
in ?
from Products.CMFDefault.MetadataTool import *
File "E:\Zope\current\Products\CMFDefault\MetadataTool.py", line 90, in ?
from OFS.SimpleItem import SimpleItem
ImportError: cannot import name SimpleItem
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_MetadataTool.py
Running: lib\python\Products\CMFDefault\tests\test_NewsItem.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_NewsItem.py", line 2, in
?
from Products.CMFDefault.NewsItem import NewsItem
File "E:\Zope\current\Products\CMFDefault\NewsItem.py", line 92, in ?
from Globals import HTMLFile, HTML
ImportError: cannot import name HTMLFile
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_NewsItem.py
Running: lib\python\Products\CMFDefault\tests\test_utils.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFDefault\tests\test_utils.py", line 2, in ?
from Products.CMFDefault.utils import parseHeadersBody
ImportError: cannot import name parseHeadersBody
No test suite found in file:
lib\python\Products\CMFDefault\tests\test_utils.py
Running: lib\python\Products\CMFTopic\tests\test_all.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTopic\tests\test_all.py", line 2, in ?
from Products.CMFTopic.tests import test_Topic
File "E:\Zope\current\Products\CMFTopic\__init__.py", line 86, in ?
import Topic
File "E:\Zope\current\Products\CMFTopic\Topic.py", line 86, in ?
from Globals import HTMLFile, package_home, InitializeClass
ImportError: cannot import name HTMLFile
No test suite found in file:
lib\python\Products\CMFTopic\tests\test_all.py
Running: lib\python\Products\CMFTopic\tests\test_DateC.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTopic\tests\test_DateC.py", line 2, in ?
import Products.CMFTopic.DateCriteria
File "E:\Zope\current\Products\CMFTopic\DateCriteria.py", line 89, in ?
from Topic import Topic
ImportError: cannot import name Topic
No test suite found in file:
lib\python\Products\CMFTopic\tests\test_DateC.py
Running: lib\python\Products\CMFTopic\tests\test_ListC.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTopic\tests\test_ListC.py", line 2, in ?
import Products.CMFTopic.ListCriterion
File "E:\Zope\current\Products\CMFTopic\ListCriterion.py", line 89, in ?
from Topic import Topic
ImportError: cannot import name Topic
No test suite found in file:
lib\python\Products\CMFTopic\tests\test_ListC.py
Running: lib\python\Products\CMFTopic\tests\test_SIC.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTopic\tests\test_SIC.py", line 2, in ?
import Products.CMFTopic.SimpleIntCriterion
File "E:\Zope\current\Products\CMFTopic\SimpleIntCriterion.py", line 88, in ?
from AbstractCriterion import AbstractCriterion
File "E:\Zope\current\Products\CMFTopic\AbstractCriterion.py", line 88, in ?
from OFS.SimpleItem import Item
ImportError: cannot import name Item
No test suite found in file:
lib\python\Products\CMFTopic\tests\test_SIC.py
Running: lib\python\Products\CMFTopic\tests\test_SSC.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTopic\tests\test_SSC.py", line 2, in ?
import Products.CMFTopic.SimpleStringCriterion
File "E:\Zope\current\Products\CMFTopic\SimpleStringCriterion.py", line 88, in
?
from AbstractCriterion import AbstractCriterion
ImportError: cannot import name AbstractCriterion
No test suite found in file:
lib\python\Products\CMFTopic\tests\test_SSC.py
Running: lib\python\Products\CMFTopic\tests\test_Topic.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTopic\tests\test_Topic.py", line 6, in ?
SSC = Products.CMFTopic.SimpleStringCriterion.SimpleStringCriterion
AttributeError: 'Products' module has no attribute 'CMFTopic'
No test suite found in file:
lib\python\Products\CMFTopic\tests\test_Topic.py
Running: lib\python\Products\CMFTracker\tests\test_all.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTracker\tests\test_all.py", line 2, in ?
from Products.CMFTracker.tests import test_IssueDescription
File "E:\Zope\current\Products\CMFTracker\tests\test_IssueDescription.py", lin
e 2, in ?
from Products.CMFTracker.tests.utils import *
File "E:\Zope\current\Products\CMFTracker\tests\utils.py", line 4, in ?
from Products.CMFCore.PortalFolder import PortalFolder
File "E:\Zope\current\Products\CMFCore\PortalFolder.py", line 92, in ?
import CMFCorePermissions
File "E:\Zope\current\Products\CMFCore\CMFCorePermissions.py", line 36, in ?
setDefaultRoles( ListFolderContents, ( 'Manager', 'Owner' ) )
File "E:\Zope\current\Products\CMFCore\CMFCorePermissions.py", line 25, in set
DefaultRoles
setattr(Globals.ApplicationDefaultPermissions, mangled, roles)
AttributeError: 'Globals' module has no attribute 'ApplicationDefaultPermissions
'
No test suite found in file:
lib\python\Products\CMFTracker\tests\test_all.py
Running: lib\python\Products\CMFTracker\tests\test_IssueDescription.py
Traceback (most recent call last):
File "utilities\testrunner.py", line 115, in runFile
File "utilities\testrunner.py", line 59, in getSuiteFromFile
File "E:\Zope\current\Products\CMFTracker\tests\test_IssueDescription.py", lin
e 4, in ?
class TestIssueDescription( BaseTrackerTestCase ):
NameError: name 'BaseTrackerTestCase' is not defined
No test suite found in file:
lib\python\Products\CMFTracker\tests\test_IssueDescription.py
Running: lib\python\Products\CMFWiki\tests\test_all.py
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
Running: lib\python\Products\DCWorkflow\tests\test_all.py
----------------------------------------------------------------------
Ran 0 tests in 0.000s
--------------30AB98D8BA17E0576AAE9A04--