[Checkins] SVN: grokproject/trunk/grokproject/template/src/+package+/ Fix tests.

Jan-Jaap Driessen jdriessen at thehealthagency.com
Tue Jan 4 10:12:12 EST 2011


Log message for revision 119349:
  Fix tests.

Changed:
  U   grokproject/trunk/grokproject/template/src/+package+/app.txt_tmpl
  U   grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl

-=-
Modified: grokproject/trunk/grokproject/template/src/+package+/app.txt_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/src/+package+/app.txt_tmpl	2011-01-04 14:54:38 UTC (rev 119348)
+++ grokproject/trunk/grokproject/template/src/+package+/app.txt_tmpl	2011-01-04 15:12:12 UTC (rev 119349)
@@ -29,16 +29,14 @@
     >>> print browser.contents
     <html>
     <head>
+    <link rel="stylesheet" type="text/css" href="http://localhost/fanstatic/grokexample/style.css" />
     <base href="http://localhost/app/@@index" />
-    <BLANKLINE>
     </head>
     <body>
       <h1>Congratulations!</h1>
-    <BLANKLINE>
       <p>Your Grok application is up and running.
       Edit <code>${package}/app_templates/index.pt</code> to change
       this page.</p>
       <img src="http://localhost/fanstatic/${project_lowercase}/evencaveman.jpg" />
     </body>
     </html>
-    <BLANKLINE>

Modified: grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl
===================================================================
--- grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl	2011-01-04 14:54:38 UTC (rev 119348)
+++ grokproject/trunk/grokproject/template/src/+package+/tests.py_tmpl	2011-01-04 15:12:12 UTC (rev 119349)
@@ -11,6 +11,10 @@
     suite = unittest.TestSuite()
 
     app_test = doctest.DocFileSuite('app.txt',
+        optionflags = (
+            doctest.ELLIPSIS +
+            doctest.NORMALIZE_WHITESPACE +
+            doctest.REPORT_NDIFF),
         globs={'getRootFolder': browser_layer.getRootFolder})
     app_test.layer = browser_layer
 



More information about the checkins mailing list