[Checkins] SVN: grok/branches/grokcore.xxx/ move 'static' tests from grok to grokcore.view

Godefroid Chapelle gotcha at bubblenet.be
Fri Jul 18 05:27:19 EDT 2008


Log message for revision 88480:
  move 'static' tests from grok to grokcore.view

Changed:
  A   grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/
  U   grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/statichaspy.py
  U   grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/staticispackage.py
  U   grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/test_all.py
  D   grok/branches/grokcore.xxx/src/grok/tests/static/
  U   grok/branches/grokcore.xxx/src/grok/tests/test_grok.py

-=-
Copied: grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static (from rev 88477, grok/branches/grokcore.xxx/src/grok/tests/static)


Property changes on: grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static
___________________________________________________________________
Name: svn:mergeinfo
   + 

Modified: grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/statichaspy.py
===================================================================
--- grok/branches/grokcore.xxx/src/grok/tests/static/statichaspy.py	2008-07-18 09:02:51 UTC (rev 88477)
+++ grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/statichaspy.py	2008-07-18 09:27:18 UTC (rev 88480)
@@ -2,8 +2,8 @@
 When a package contains a 'static' resource directory, it must not also contain
 a module called 'static.py':
 
-  >>> import grok
-  >>> grok.testing.grok('grok.tests.static.statichaspy_fixture')
+  >>> from grokcore.view.tests.test_all import grok
+  >>> grok('grokcore.view.tests.static.statichaspy_fixture')
   Traceback (most recent call last):
     ...
   GrokError: A package can not contain both a 'static' resource directory

Modified: grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/staticispackage.py
===================================================================
--- grok/branches/grokcore.xxx/src/grok/tests/static/staticispackage.py	2008-07-18 09:02:51 UTC (rev 88477)
+++ grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/static/staticispackage.py	2008-07-18 09:27:18 UTC (rev 88480)
@@ -1,8 +1,8 @@
 """
 It is an error for the 'static' directory to be a python package:
 
-  >>> import grok
-  >>> grok.testing.grok('grok.tests.static.staticispackage_fixture')
+  >>> from grokcore.view.tests.test_all import grok
+  >>> grok('grokcore.view.tests.static.staticispackage_fixture')
   Traceback (most recent call last):
     ...
   GrokError: The 'static' resource directory must not be a python package.

Modified: grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/test_all.py
===================================================================
--- grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/test_all.py	2008-07-18 09:17:34 UTC (rev 88479)
+++ grok/branches/grokcore.xxx/devel/grokcore.view/src/grokcore/view/tests/test_all.py	2008-07-18 09:27:18 UTC (rev 88480)
@@ -64,7 +64,7 @@
 
 def test_suite():
     suite = unittest.TestSuite()
-    for name in ['template']:
+    for name in ['template', 'static']:
         suite.addTest(suiteFromPackage(name))
     return suite
 

Modified: grok/branches/grokcore.xxx/src/grok/tests/test_grok.py
===================================================================
--- grok/branches/grokcore.xxx/src/grok/tests/test_grok.py	2008-07-18 09:17:34 UTC (rev 88479)
+++ grok/branches/grokcore.xxx/src/grok/tests/test_grok.py	2008-07-18 09:27:18 UTC (rev 88480)
@@ -43,7 +43,7 @@
 def test_suite():
     suite = unittest.TestSuite()
     for name in ['adapter', 'error', 'view', 'event', 'security', 'catalog',
-                 'zcml', 'static', 'utility', 'xmlrpc', 'json', 'container',
+                 'zcml', 'utility', 'xmlrpc', 'json', 'container',
                  'traversal', 'form', 'grokker', 'directive',
                  'baseclass', 'annotation', 'application',
                  'viewlet', 'testsetup', 'conflict', 'order']:



More information about the Checkins mailing list