[Zope3-Users] Tests are not working Was: Access to request in content object and object path in doctests

Maciej Wisniowski maciej.wisniowski at coig.katowice.pl
Mon Jan 29 05:14:29 EST 2007


> I'm trying to create doctests and I'm not able to get
> my view with getMultiAdapter. I can't find why...
> Do I have to explicitly call XMLConfig or something
> like that? What is wrong?
>   
I've found that modifying setUp function like
below helped, an my test now executes properly:

def setUp(test):
    setup.placelessSetUp()
    setup.setUpTraversal()
    XMLConfig('meta.zcml', zope.component)()
    XMLConfig('meta.zcml', zope.app)()
    XMLConfig('configure.zcml', zope.app)()
    XMLConfig('configure.zcml', basic)()


Although I'm still not sure if this is correct way.

---
Maciej Wisniowski


More information about the Zope3-users mailing list