

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
2 messages in net.sourceforge.lists.plone-usersRe: unit test question| From | Sent On | Attachments |
|---|---|---|
| Wohnlich, Eric (IMS) | Nov 1, 2006 11:28 am | |
| Raphael Ritz | Nov 3, 2006 12:45 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: unit test question | Actions... |
|---|---|---|
| From: | Raphael Ritz (r.ri...@public.gmane.org) | |
| Date: | Nov 3, 2006 12:45:18 am | |
| List: | net.sourceforge.lists.plone-users | |
Wohnlich, Eric (IMS) schrieb:
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?
because in tests new skin layers aren't automatically added to the default search path on product installation.
optilude? andym?
Try adding
def afterSetUp(self): self._refreshSkinData()
to your test case class.
HTH,
Raphael
Thanks, Eric
------------------------------------------------------------------------ Information in this e-mail may be confidential. It is intended only for the addressee(s) identified above. If you are not the addressee(s), or an employee or agent of the addressee(s), please note that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender of the error.
------------------------------------------------------------------------
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------------------------------------------------------------------------
_______________________________________________ Plone-Users mailing list Plone-Users-5NWGOfrQmneRv+LV9M...@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-users
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642







