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:


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.


Noe Nieto
NNieto Consulting Services
M: [hidden email]
T:  @tzicatl
Li: Perfil en LinkedIn

Grok-dev mailing list
[hidden email]