Skip to content

Commit

Permalink
Adapted tests to new grokcore.view release: switched from View to Cod…
Browse files Browse the repository at this point in the history
…eView.
  • Loading branch information
reinout committed Jul 4, 2009
1 parent b140fab commit 8afc2ae
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changes
1.1 (unreleased)
----------------

* Adapted tests to new grokcore.view release: switched from View to CodeView.

* Add grok.View permissions to functional tests (requires grokcore.security 1.1)

1.0 (2008-11-15)
Expand Down
6 changes: 6 additions & 0 deletions buildout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ parts = interpreter test
extends = versions.cfg
versions = versions


[versions]
grokcore.viewlet =

grokcore.view = 1.9
# ^^^ can be removed after update of grok version list


[interpreter]
recipe = zc.recipe.egg
eggs = grokcore.viewlet
interpreter = python


[test]
recipe = zc.recipe.testrunner
eggs = grokcore.viewlet
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read(*rnames):
'martian >= 0.10',
'grokcore.component >= 1.5',
'grokcore.security >= 1.1',
'grokcore.view >= 1.1',
'grokcore.view >= 1.9',
'zope.viewlet',
# for tests:
'zope.testing',
Expand Down
2 changes: 1 addition & 1 deletion src/grokcore/viewlet/ftests/viewlet/view_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class Fred(grok.Context):
pass

class CaveView(grok.View):
class CaveView(grok.CodeView):
def render(self):
return 'Cave'

Expand Down
2 changes: 1 addition & 1 deletion src/grokcore/viewlet/ftests/viewlet/viewlet_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ def render(self):
class Cave(grok.Context):
pass

class Index(grok.View):
class Index(grok.CodeView):
def render(self):
return "hoi"
2 changes: 1 addition & 1 deletion src/grokcore/viewlet/tests/viewlet/viewlet_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
class AContext(grok.Context):
pass

class ViewWithItems(grok.View):
class ViewWithItems(grok.CodeView):
grok.name('with_items')

def render(self):
Expand Down

0 comments on commit 8afc2ae

Please sign in to comment.