If you're trying to write functional tests, see
http://docs.pylonshq.com/pyramid/dev/narr/testing.html#creating-functional-tests

- C

On Thu, 2010-12-30 at 13:27 -0800, grassoalvaro wrote:
> Hi,
> 
> i was looking in pyramid tests but didn't find the answer. So it is
> possible to make app request in code by hand? For example:
> 
> from pyramid.config import Configurator
> 
> ==== some_view.py ====
> def init_plugin():
>     config = Configurator()
>     config.add_route('costam', 'page/{page}/',
>                      view='cms.plugins.plugin1.some_view')
>     return config
> 
> def some_view(request):
>     return 'dupa'
> 
> 
> and i want to make something like:
> 
> plugin_conf = init_plugin()
> plugin_conf.make_GET_request('/foo/bar/page/1/')
> 
> 
> Thanks in advance.
> 


-- 
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