FanStatic resources and testing

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FanStatic resources and testing

Noe Nieto
Dear cavemen,

I'm writng a doctest and I want to test whether a css stylesheet is available.

The doctest suite has browser_layer set to an instance of ZopeFanstaticBrowserLayer


I put the css in src/myapp/static/stylesheet.css

And in my doctest I'm doing this:

>>> browser.open('http://localhost/app/fanstatic/myapp/stylesheet.css')

But the test fails with a HTTPError: HTTP Error 404: Not Found.

But launching the grok app and visitng the same resource with firefox gives no error.


Why?

--
---
Noe Nieto
NNieto Consulting Services
M: [hidden email]
W: http://noenieto.com
T:  @tzicatl
Li: Perfil en LinkedIn


_______________________________________________
Grok-dev mailing list
[hidden email]
https://mail.zope.org/mailman/listinfo/grok-dev