Skip to content

Commit

Permalink
move 'static' tests from grok to grokcore.view
Browse files Browse the repository at this point in the history
  • Loading branch information
gotcha committed Jul 18, 2008
1 parent b828ff3 commit d8debf0
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 6 deletions.
File renamed without changes.
Expand Up @@ -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
Expand Down
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion devel/grokcore.view/src/grokcore/view/tests/test_all.py
Expand Up @@ -64,7 +64,7 @@ def suiteFromPackage(name):

def test_suite():
suite = unittest.TestSuite()
for name in ['template']:
for name in ['template', 'static']:
suite.addTest(suiteFromPackage(name))
return suite

Expand Down
2 changes: 1 addition & 1 deletion src/grok/tests/test_grok.py
Expand Up @@ -43,7 +43,7 @@ def suiteFromPackage(name):
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']:
Expand Down

0 comments on commit d8debf0

Please sign in to comment.