Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion How do I run unit tests in a tipfy app?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon Payne  
View profile  
 More options Jan 24 2011, 12:36 pm
From: Simon Payne <i...@simonpayne.cz>
Date: Mon, 24 Jan 2011 18:36:36 +0100
Local: Mon, Jan 24 2011 12:36 pm
Subject: Re: [tipfy] Re: How do I run unit tests in a tipfy app?

I don't run test ;)
I just create stuff and go forward :D
But if I ever create tests there are plenty of tools for that in python. I'd
probably run them on pre-commit hook in mercurial so that code in repository
would be always tested ...

2011/1/24 Charlie <charlieev...@gmail.com>

> OK, let me try asking another way. How do YOU run unit tests in your
> tipfy app?

> On Jan 18, 11:07 am, Charlie <charlieev...@gmail.com> wrote:
> > 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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.