test documentation bug
Bug #677401 reported by
Giampaolo Rodolà
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Confirmed
|
Medium
|
Uli Fouquet |
Bug Description
In:
http://
...at a certain point grok.testing.
>>> import grok
>>> test_suite = grok.testing.
test_suite = grok.testing.
AttributeError: 'module' object has no attribute 'register_
To post a comment you must log in.
It appears that a lot of the current documentation is in need of updating.
Currently (as of Grok 1.2.1), we need to use z3c.testsetup. So src/myapp/tests.py will typically look like this:
----- wsgi.testlayer import BrowserLayer
import os.path
import z3c.testsetup
from zope.app.
import myapp
browser_layer = BrowserLayer(myapp)
test_suite = z3c.testsetup. register_ all_tests( 'getRootFolder' : browser_ layer.getRootFo lder})
'myapp', globs={
-----