[Zope3-Users] Zope3 newbie questions

Kent Tenney ktenney at gmail.com
Fri Nov 12 07:55:05 EST 2004


Howdy,

>From http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ShortTutorial/short.pdf
"We' ll create a buddydemo package in the src directory, which is in the Python
path."

I don't seem to have a 'src' directory in my installation.

I'm commencing a product which is in $INSTANCE\lib\python\mim.

I have a mim.txt file in that directory with documentation and doctests.

Also in that directory is tests.py with::

 def test_suite():
     return DocFileSuite('mim .txt')

I then run::

 from subprocess import Popen as Popen
 import os

 os.chdir(r'c:\python23\lib\site-packages\zope\app\tests')
 Popen(['python', 'test.py', '-s mim', r'-l
c:\cygwin\home\ktenney\Zope3\lib\python'])

and get the result;

Running UNIT tests from c:\python23\lib\site-packages\zope\app\tests\ c:\cygwin\
home\ktenney\Zope3\lib\python\
Traceback (most recent call last):
  File "test.py", line 1208, in ?
    process_args()
  File "test.py", line 1189, in process_args
    bad = main(MODULE_FILTERS, TEST_FILTERS, LIBDIR)
  File "test.py", line 824, in main
    files = find_tests(module_filter)
  File "test.py", line 593, in find_tests
    d = find_test_dir(d)
  File "test.py", line 585, in find_test_dir
    raise ValueError("%s does not exist!" % dir)
ValueError:  mim does not exist!

The doc in test.py say that the -l switch designates where to
look for the directory with the tests.py file ...

What am I missing?

Thanks,
Kent


More information about the Zope3-users mailing list