[Zope-dev] Can't get tests in Products folder to run
Chris Withers
chrisw@nipltd.com
Sun, 29 Jul 2001 11:56:14 +0100
This is a multi-part message in MIME format.
--------------F2BD2534B22388B3E054C233
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
More testing stuff :-S
I can't get any of the tests in the Products folder to run. I must be doing
something wrong but I can't figure it out.
The command line I'm using is:
E:\Zope\2.4.0>bin\python utilities\testrunner.py -d lib\python\Products\
...and it's finding tests for ZCatalog, PythonScripts, PageTemplates,
PluginIndexes and CoreSessionTracking; but they're all failing with import
errors and not a single test runs.
What am I doign wrong here?
cheers,
Chris
PS: oops, I should expect PageTemplates to fail since my pristine 2.4.0 install
doesn't have the necessary python packages.
PPS: the attached file contains all the errors if anyone is interested.
--------------F2BD2534B22388B3E054C233
Content-Type: text/plain; charset=us-ascii;
name="productfails.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="productfails.txt"
Running: lib\python\Products\CoreSessionTracking\tests\testAutoExpireMapping.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\CoreSessionTracking\tests\testAutoExpireMapping
.py", line 89, in ?
from Products.CoreSessionTracking.AutoExpireMapping import AutoExpireMapping
File "E:\Zope\current\Products\CoreSessionTracking\__init__.py", line 90, in ?
import SessionIdManager, SessionDataManager, SessionDataContainer
File "E:\Zope\current\Products\CoreSessionTracking\SessionIdManager.py", line
97, in ?
from AccessControl.Owned import Owned
File "E:\Zope\242A6D~1.0\lib\python\AccessControl\Owned.py", line 105, in ?
class Owned(ExtensionClass.Base):
File "E:\Zope\242A6D~1.0\lib\python\AccessControl\Owned.py", line 122, in Owne
d
manage_owner=Globals.DTMLFile('dtml/owner', globals())
AttributeError: 'Globals' module has no attribute 'DTMLFile'
No test suite found in file:
lib\python\Products\CoreSessionTracking\tests\testAutoExpireMapping.py
Running: lib\python\Products\PluginIndexes\tests\testFieldIndex.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\242A6D~1.0\lib\python\Products\PluginIndexes\tests\testFieldInde
x.py", line 96, in ?
from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
File "E:\Zope\242A6D~1.0\lib\python\Products\PluginIndexes\__init__.py", line
88, in ?
import common.UnIndex as UnIndex
File "E:\Zope\242A6D~1.0\lib\python\Products\PluginIndexes\common\UnIndex.py",
line 90, in ?
from Globals import Persistent
ImportError: cannot import name Persistent
No test suite found in file:
lib\python\Products\PluginIndexes\tests\testFieldIndex.py
Running: lib\python\Products\PluginIndexes\tests\testKeywordIndex.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\242A6D~1.0\lib\python\Products\PluginIndexes\tests\testKeywordIn
dex.py", line 94, in ?
from Products.PluginIndexes.KeywordIndex.KeywordIndex import KeywordIndex
File "E:\Zope\242A6D~1.0\lib\python\Products\PluginIndexes\KeywordIndex\Keywor
dIndex.py", line 91, in ?
from Globals import Persistent, DTMLFile
ImportError: cannot import name Persistent
No test suite found in file:
lib\python\Products\PluginIndexes\tests\testKeywordIndex.py
Running: lib\python\Products\PluginIndexes\tests\testPathIndex.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\242A6D~1.0\lib\python\Products\PluginIndexes\tests\testPathIndex
.py", line 95, in ?
from Products.PluginIndexes.PathIndex.PathIndex import PathIndex
File "E:\Zope\242A6D~1.0\lib\python\Products\PluginIndexes\PathIndex\PathIndex
.py", line 91, in ?
from Globals import Persistent, DTMLFile
ImportError: cannot import name Persistent
No test suite found in file:
lib\python\Products\PluginIndexes\tests\testPathIndex.py
Running: lib\python\Products\PluginIndexes\tests\testSplitter.py
....
----------------------------------------------------------------------
Ran 4 tests in 0.000s
OK
Running: lib\python\Products\PluginIndexes\tests\testTextIndex.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\242A6D~1.0\lib\python\Products\PluginIndexes\tests\testTextIndex
.py", line 108, in ?
from Products.PluginIndexes.TextIndex import TextIndex,GlobbingLexicon
File "E:\Zope\242A6D~1.0\lib\python\Products\PluginIndexes\TextIndex\TextIndex
.py", line 99, in ?
from Globals import Persistent,DTMLFile
ImportError: cannot import name Persistent
No test suite found in file:
lib\python\Products\PluginIndexes\tests\testTextIndex.py
Running: lib\python\Products\PluginIndexes\TextIndex\tests\testSplitter.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\242A6D~1.0\lib\python\Products\PluginIndexes\TextIndex\tests\tes
tSplitter.py", line 95, in ?
import Splitter
ImportError: No module named Splitter
No test suite found in file:
lib\python\Products\PluginIndexes\TextIndex\tests\testSplitter.py
Running: lib\python\Products\PythonScripts\tests\testPythonScript.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\242A6D~1.0\lib\python\Products\PythonScripts\tests\testPythonScr
ipt.py", line 94, in ?
from Products.PythonScripts.PythonScript import PythonScript
File "E:\Zope\242A6D~1.0\lib\python\Products\PythonScripts\__init__.py", line
89, in ?
import PythonScript
File "E:\Zope\242A6D~1.0\lib\python\Products\PythonScripts\PythonScript.py", l
ine 95, in ?
from Globals import DTMLFile, MessageDialog, package_home
ImportError: cannot import name DTMLFile
No test suite found in file:
lib\python\Products\PythonScripts\tests\testPythonScript.py
Running: lib\python\Products\ZCatalog\tests\testCatalog.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\242A6D~1.0\lib\python\Products\ZCatalog\tests\testCatalog.py", l
ine 108, in ?
from Products.ZCatalog import ZCatalog,Vocabulary
File "E:\Zope\242A6D~1.0\lib\python\Products\ZCatalog\__init__.py", line 88, i
n ?
import ZCatalog, Catalog, CatalogAwareness, ZClasses
File "E:\Zope\242A6D~1.0\lib\python\Products\ZCatalog\ZCatalog.py", line 87, i
n ?
from Globals import DTMLFile, MessageDialog
ImportError: cannot import name DTMLFile
No test suite found in file:
lib\python\Products\ZCatalog\tests\testCatalog.py
Running: lib\python\Products\ZCatalog\tests\testCatalogTiming.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\242A6D~1.0\lib\python\Products\ZCatalog\tests\testCatalogTiming.
py", line 24, in ?
from Products.ZCatalog import ZCatalog
ImportError: cannot import name ZCatalog
No test suite found in file:
lib\python\Products\ZCatalog\tests\testCatalogTiming.py
--------------F2BD2534B22388B3E054C233--