[quills-dev] [Collective-checkins] r49760 - Quills/trunk/tests
quills-dev at lists.etria.com quills-dev at lists.etria.comThu Sep 20 13:59:44 UTC 2007
- Previous message: [quills-dev] [Fwd: Re: Automatically installing a GS profile from another product/library]
- Next message: [quills-dev] [Collective-checkins] r49761 - Quills/trunk/tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: tomster
Date: Thu Sep 20 13:59:43 2007
New Revision: 49760
Modified:
Quills/trunk/tests/base.py
Quills/trunk/tests/browser.rst
Log:
with these changes access to the weblog instance works, but the default view still raises errors (folder_contents works).
at least we're getting there...
Modified: Quills/trunk/tests/base.py
==============================================================================
--- Quills/trunk/tests/base.py (original)
+++ Quills/trunk/tests/base.py Thu Sep 20 13:59:43 2007
@@ -15,6 +15,7 @@
from Products.CMFCore.utils import getToolByName
# Let Zope know about Quills
+ZopeTestCase.installProduct('ATTrackback')
ZopeTestCase.installProduct('Quills')
# Import PloneTestCase - this registers more products with Zope as a side effect
@@ -26,7 +27,7 @@
import quills.app
# Set up a Plone site, and apply the Quills extension profile
-setupPloneSite(products=['Quills'])
+setupPloneSite(products=['Quills', 'ATTrackback'])
class QuillsSite(PloneSite):
@@ -48,7 +49,6 @@
ZopeTestCase.close(app)
-
class Browser(BaseBrowser):
def addAuthorizationHeader(self, user=PloneTestCase.default_user, password=PloneTestCase.default_password):
@@ -71,9 +71,8 @@
def afterSetUp(self):
self.loginAsPortalOwner()
self.portal.invokeFactory('Weblog', id='weblog')
- self.portal.invokeFactory('Document', id='doc')
self.weblog = self.portal.weblog
- self.portal.portal_workflow.doActionFor(self.portal.doc, "publish")
+ self.portal.portal_workflow.doActionFor(self.portal.weblog, "publish")
class QuillsTestCase(QuillsTestCaseMixin, PloneTestCase.PloneTestCase):
Modified: Quills/trunk/tests/browser.rst
==============================================================================
--- Quills/trunk/tests/browser.rst (original)
+++ Quills/trunk/tests/browser.rst Thu Sep 20 13:59:43 2007
@@ -3,7 +3,7 @@
Here we klick ourselves through a Quills instance and check that everything is in order. First some boilerplate to get our browser up and running:
- >>> self.loginAsPortalOwner()
+ >>> self.setRoles(("Manager",))
>>> browser = self.getBrowser(logged_in=True)
>>> browser.handleErrors = False
- >>> browser.open('http://nohost/plone/doc/')
+ >>> browser.open('http://nohost/plone/weblog/folder_contents')
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Collective-checkins mailing list
Collective-checkins at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/collective-checkins
- Previous message: [quills-dev] [Fwd: Re: Automatically installing a GS profile from another product/library]
- Next message: [quills-dev] [Collective-checkins] r49761 - Quills/trunk/tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the quills-dev mailing list