2 messages in net.sourceforge.lists.plone-usersunit test question
FromSent OnAttachments
Wohnlich, Eric (IMS)Nov 1, 2006 11:28 am 
Raphael RitzNov 3, 2006 12:45 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:unit test questionActions...
From:Wohnlich, Eric (IMS) (Wohn@public.gmane.org)
Date:Nov 1, 2006 11:28:14 am
List:net.sourceforge.lists.plone-users

Basically, if I try to do "self.portal.myScript" in a test, where "myScript" is in the skins folder, I get an AttributeError. I assume it is possible to call a script that would be in the skins directory of my product, correct? And I know my product has installed the skins - for instance, the following test passes: def testSkins(self): skins = self.portal.portal_skins.objectIds() self.failUnless(PROJECTNAME in skins)

So I don't understand why I wouldn't be able to do unit tests on the scripts in my skins directory. Can anyone shed any light for me? optilude? andym?

Thanks, Eric

--------------------------------------------------------