Charlie
unread,Jan 18, 2011, 11:07:34 AM1/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tipfy
Given a standard set-up, how do you run unit tests that let you use
the Tipfy test client?
I'm trying to add client unit tests for a small tipfy app that I'm
porting from Django. I found the examples for using the tipfy test
client, but when I run the unit tests it can't find the tipfy module.
I've started from the base all-in-one project, so my app is in:
app/apps/my_app
Here's the command, after cd-ing to the app directory:
$ nosetests --with-gae --without-sandbox
E
======================================================================
ERROR: Failure: ImportError (No module named tipfy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-1.0.0-py2.5.egg/nose/
loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/Library/Python/2.5/site-packages/nose-1.0.0-py2.5.egg/nose/
importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Library/Python/2.5/site-packages/nose-1.0.0-py2.5.egg/nose/
importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/charlieevett/code/channel-services/app/apps/podcast/
tests.py", line 12, in <module>
from tipfy import Tipfy
ImportError: No module named tipfy