[Products.Silva][Sylvain Viollon] Add default options to the tes...

[email protected] Tue, 24 Sep 2013 12:51:36 +0200
Newsgroups gmane.comp.web.zope.silva.cvs
Message-ID <[email protected]>
author:    Sylvain Viollon
date:      Tue Sep 24 12:51:32 2013 +0200
revision:  11862:e11ec369377b in Products.Silva
branch:    2.4
details:   https://hg.infrae.com/Products.Silva?cmd=changeset;node=e11ec369377b
modified:  Products/Silva/testing.py
added:     
removed:   
log:       Add default options to the test Fanstatic instance.


diffstat:

 Products/Silva/testing.py |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r a0918ac198dd -r e11ec369377b Products/Silva/testing.py
--- a/Products/Silva/testing.py	Mon Sep 23 16:13:39 2013 +0200
+++ b/Products/Silva/testing.py	Tue Sep 24 12:51:32 2013 +0200
@@ -22,8 +22,8 @@
 from infrae.testing import assertNotTriggersEvents, assertTriggersEvents
 from infrae.testing import testCleanUp
 from infrae.wsgi.testing import BrowserLayer, TestRequest
-from fanstatic.wsgi import Fanstatic
 from zope.site.hooks import setSite, setHooks
+import fanstatic
 import transaction
 
 
@@ -220,8 +220,10 @@
         """Return a WSGI application, that can be used to query the
         Silva Root.
         """
-        return Fanstatic(
+        return fanstatic.Fanstatic(
             self._test_wsgi_application,
+            minified=True,
+            bundle=True,
             publisher_signature='++static++')
 
     def get_browser(self, settings=None):