Hello,

Is there any documentation on properly setting up tests with pyramid? I am
running into some problems trying to structure my tests directory.

IE:
app_root
  -> tests
    -> __init__.py
    -> modules
      -> __init__.py
      -> adviewer.py

When running python setup.py test -q I'm getting the following error. Please
point me in the right direction, we are now move into the testing phase of
our application. (We should have done this from the beginning I know :P)

(bossteam_dev)$ python setup.py test -q
running test
running egg_info
writing requirements to youad.egg-info/requires.txt
writing youad.egg-info/PKG-INFO
writing top-level names to youad.egg-info/top_level.txt
writing dependency_links to youad.egg-info/dependency_links.txt
writing entry points to youad.egg-info/entry_points.txt
writing paster_plugins to youad.egg-info/paster_plugins.txt
reading manifest file 'youad.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.rst'
warning: no files found matching '*.ico' under directory 'youad'
warning: no files found matching '*.pt' under directory 'youad'
warning: no files found matching '*.txt' under directory 'youad'
warning: no files found matching '*.mako' under directory 'youad'
warning: no files found matching '*.html' under directory 'youad'
warning: no files found matching '*.xml' under directory 'youad'
warning: no files found matching '*.pdf' under directory 'youad'
writing manifest file 'youad.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 60, in <module>
    paster_plugins=['pyramid'],
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File
"/home/bruce/Development/bossteam_dev/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/test.py",
line 121, in run
  File
"/home/bruce/Development/bossteam_dev/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/test.py",
line 101, in with_project_on_sys_path
  File
"/home/bruce/Development/bossteam_dev/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/test.py",
line 130, in run_tests
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in
loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 103, in
loadTestsFromName
    return self.loadTestsFromModule(obj)
  File
"/home/bruce/Development/bossteam_dev/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/test.py",
line 34, in loadTestsFromModule
  File "/usr/lib/python2.7/unittest/loader.py", line 103, in
loadTestsFromName
    return self.loadTestsFromModule(obj)
  File
"/home/bruce/Development/bossteam_dev/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/test.py",
line 34, in loadTestsFromModule
  File "/usr/lib/python2.7/unittest/loader.py", line 103, in
loadTestsFromName
    return self.loadTestsFromModule(obj)
  File
"/home/bruce/Development/bossteam_dev/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/setuptools/command/test.py",
line 34, in loadTestsFromModule
  File "/usr/lib/python2.7/unittest/loader.py", line 100, in
loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'adviewer'

-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to