Ignore:
Timestamp:
Jun 16, 2010 2:28:02 PM (11 years ago)
Author:
mylan
Message:

Merged revisions 3566-3575 via svnmerge from
http://svn.quintagroup.com/products/quintagroup.plonegooglesitemaps/branches/test_refactoring

........

r3566 | mylan | 2010-06-14 12:24:52 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Split single testqPloneGoogleSitemaps module into several specific one

........

r3567 | mylan | 2010-06-14 16:14:34 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Improve code coverage - remove useless BBB code from interfaces.

........

r3568 | mylan | 2010-06-14 20:24:25 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Improve code coverage - added test for MobileSitemap?, MobileSitemapView?.

........

r3569 | mylan | 2010-06-14 22:39:39 +0300 (Mon, 14 Jun 2010) | 1 line


#206: reorganize sitemap tests

........

r3570 | mylan | 2010-06-14 22:40:12 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Added configlet tests

........

r3571 | mylan | 2010-06-14 23:05:19 +0300 (Mon, 14 Jun 2010) | 1 line


#206: remove BBB code for plone<3.0

........

r3572 | mylan | 2010-06-14 23:12:00 +0300 (Mon, 14 Jun 2010) | 1 line


#206: added workflow vocabularies tests for SitemapTypes?

........

r3573 | mylan | 2010-06-15 21:36:40 +0300 (Tue, 15 Jun 2010) | 1 line


#206: some cleanup, simplify tests

........

r3574 | mylan | 2010-06-16 16:35:31 +0300 (Wed, 16 Jun 2010) | 1 line


#206: move mobile sitemap code preparation into base module

........

r3575 | mylan | 2010-06-16 16:37:14 +0300 (Wed, 16 Jun 2010) | 1 line


#206: Added security tests

........

Location:
quintagroup.plonegooglesitemaps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk

    • Property svnmerge-integrated changed from /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3563 to /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3576
    • Property svn:mergeinfo set to /quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/testNewsSitemaps.py

    r2422 r2538  
    1717        # Add testing news item to portal 
    1818        self.pubdate = (DateTime()+1).strftime("%Y-%m-%d") 
    19         my_news = self.portal.invokeFactory("News Item", id="my_news") 
    20         self.my_news = self.portal["my_news"] 
     19        self.my_news = _createObjectByType('News Item', self.portal, id='my_news') 
    2120        self.my_news.edit(text="Test news item", title="First news (test)", language="ua", 
    2221                          effectiveDate=self.pubdate, gsm_access="Registration", 
    2322                          gsm_genres=("PressRelease",), gsm_stock="NASDAQ:AMAT, BOM:500325") 
    24         self.portal.portal_workflow.doActionFor(self.my_news, "publish") 
     23        self.workflow.doActionFor(self.my_news, "publish") 
    2524        self.reParse() 
    2625 
     
    9190    def test_ngenresForNotExtended(self): 
    9291        # No genres should present for not extended content type 
    93         self.portal.invokeFactory("Document", id="my_doc") 
    94         my_doc = getattr(self.portal, "my_doc") 
     92        my_doc = _createObjectByType('Document', self.portal, id='my_doc') 
     93        #self.portal.invokeFactory("Document", id="my_doc") 
     94        #my_doc = getattr(self.portal, "my_doc") 
    9595        my_doc.edit(text="Test document") 
    96         self.portal.portal_workflow.doActionFor(my_doc, "publish") 
     96        self.workflow.doActionFor(my_doc, "publish") 
    9797        self.portal["news-sitemaps"].edit(portalTypes=("Document",)) 
    9898        self.reParse() 
     
    116116        # Add minimal testing news item to portal 
    117117        self.pubdate = (DateTime()+1).strftime("%Y-%m-%d") 
    118         my_news = self.portal.invokeFactory("News Item", id="my_news") 
    119         self.my_news = self.portal["my_news"] 
     118        self.my_news = _createObjectByType('News Item', self.portal, id='my_news') 
    120119        self.my_news.edit(effectiveDate=self.pubdate) 
    121         self.portal.portal_workflow.doActionFor(self.my_news, "publish") 
     120        self.workflow.doActionFor(self.my_news, "publish") 
    122121        self.reParse() 
    123122 
     
    168167    def afterSetUp(self): 
    169168        super(TestSchemaExtending, self).afterSetUp() 
    170         self.loginAsPortalOwner() 
    171         # Add testing news item to portal 
    172         my_news = self.portal.invokeFactory("News Item", id="my_news") 
    173         self.my_news = self.portal["my_news"] 
    174         my_doc = self.portal.invokeFactory("Document", id="my_doc") 
    175         self.my_doc = self.portal["my_doc"] 
     169        self.my_doc = _createObjectByType('Document', self.portal, id='my_doc') 
     170        self.my_news = _createObjectByType('News Item', self.portal, id='my_news') 
    176171 
    177172    def testExtendNewsItemByDefault(self): 
Note: See TracChangeset for help on using the changeset viewer.