Thanks for posting your resolution for anybody else who has this problem in
the future.

On Fri, Apr 30, 2010 at 11:00 AM, Melih Onvural <[email protected]>wrote:

> Turns out the solution for anyone else who gets stuck with this is to
> make sure you tag the nosetests command with:
>
> --with-pylons={app}.ini
>
> Our {app}.ini file in our test environment and build environments is
> just the existing app ini file, but it appears that most folks setup
> separate testing databases and the like which could be put into a
> test.ini file. Anyway, next time I'll pay more attention to the
> manual.
>
> --
> Melih O.
>
> On Apr 30, 12:14 am, Melih Onvural <[email protected]> wrote:
> > I'm getting this error while trying to run unit tests using nosetest:
> >
> >   File "/home/melih/src/tokbox/callmod/CallModWWW/callmodwww/config/
> > middleware.py", line 43, in make_app
> >     load_environment(global_conf, app_conf)
> >   File "/home/melih/src/tokbox/callmod/CallModWWW/callmodwww/config/
> > environment.py", line 31, in load_environment
> >     config['pylons.app_globals'] = app_globals.Globals()
> >   File "/home/melih/src/tokbox/callmod/CallModWWW/callmodwww/lib/
> > app_globals.py", line 19, in __init__
> >     self.jabber_client =
> > Signaller(config['xmpp.server_addr'].split(':'),
> > config['xmpp.domain'])
> >   File "/home/melih/src/tokbox/callmod/virtual_env/lib/python2.6/site-
> > packages/Paste-1.7.2-py2.6.egg/paste/registry.py", line 146, in
> > __getitem__
> >     return self._current_obj()[key]
> >
> > What do I need to do to make sure that the app_global.py has the
> > config files it needs setup before the unit test is run? Thanks.
> >
> > --
> > Melih O.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/pylons-discuss?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

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

Reply via email to