laurent wrote:
> Hi,
>
> After the upgrade, I get another error :
> Traceback (most recent call last):
> File "c:\python24\lib\site-packages\nose-0.9.3-py2.4.egg\nose
> \suite.py", line
> 51, in run
> self.setUp()
> File "c:\python24\lib\site-packages\nose-0.9.3-py2.4.egg\nose
> \suite.py", line 200, in setUp
> self.module = _import(self.moduleName, [self.path], self.conf)
> File "c:\python24\lib\site-packages\nose-0.9.3-py2.4.egg\nose
> \importer.py", line 101, in _import
> mod = load_module(fqname, fh, filename, desc)
> File "E:\hello\hello\tests\__init__.py", line 26, in ?
> cmd.run([test_file])
> File "c:\python24\lib\site-packages\PasteScript-1.3.4-py2.4.egg\paste
> \script\appinstall.py", line 65, in run
> return super(AbstractInstallCommand, self).run(new_args)
> File "c:\python24\lib\site-packages\PasteScript-1.3.4-py2.4.egg\paste
> \script\command.py", line 210, in run
> result = self.command()
> File "c:\python24\lib\site-packages\PasteScript-1.3.4-py2.4.egg\paste
> \script\appinstall.py", line 448, in command
> raise BadCommand(
> BadCommand: The section 'main' is not the application (probably a
> filter). You should add #section_name, where section_name is the
> section that configures your application
>
> Not sure I understand the last sentence ...
> Laurent
You need to point at the section that has your application
configuration. So if you configuration is in [app:foobar], you have to
change to appconfig('...#foobar') in your test file (in
tests/__init__.py, I think).
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
: Write code, do good : http://topp.openplans.org/careers
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---