Changeset 2708 in products


Ignore:
Timestamp:
Jul 20, 2010 6:15:53 PM (14 years ago)
Author:
liebster
Message:

Edited doc tests created ZopeSkel?

Location:
quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/README.txt

    r2646 r2708  
    3434 
    3535We have the login portlet, so let's use that. 
    36  
     36     
     37    >>> browser.getLink('Log in').click() 
    3738    >>> browser.getControl(name='__ac_name').value = portal_owner 
    3839    >>> browser.getControl(name='__ac_password').value = default_password 
     
    7980 
    8081    >>> browser.getControl(name='title').value = 'GSpreadsheet Sample' 
     82    >>> browser.getControl(name='spreadsheet_id').value = 'id' 
     83    >>> browser.getControl(name='worksheet_id').value = 'od1' 
    8184    >>> browser.getControl('Save').click() 
    8285    >>> 'Changes saved' in browser.contents 
     
    9295    >>> browser.getLink('Edit').click() 
    9396    >>> browser.getControl(name='title').value = 'New GSpreadsheet Sample' 
     97    >>> browser.getControl(name='spreadsheet_id').value = 'id1' 
     98    >>> browser.getControl(name='worksheet_id').value = 'od6' 
    9499    >>> browser.getControl('Save').click() 
    95100 
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/tests/base.py

    r2642 r2708  
    2222# All of Plone's products are already set up by PloneTestCase. 
    2323 
     24PROJECT_NAME = 'quintagroup.gdocs.spreadsheet' 
     25 
    2426@onsetup 
    2527def setup_product(): 
     
    3739    fiveconfigure.debug_mode = True 
    3840    import quintagroup.gdocs.spreadsheet 
     41    import quintagroup.gauth 
     42    import Products.DataGridField 
    3943    zcml.load_config('configure.zcml', quintagroup.gdocs.spreadsheet) 
     44    zcml.load_config('configure.zcml', quintagroup.gauth) 
     45    zcml.load_config('configure.zcml', Products.DataGridField) 
    4046    fiveconfigure.debug_mode = False 
    4147 
     
    5157    #   ztc.installPackage('borg.localrole') 
    5258 
    53     ztc.installPackage('quintagroup.gdocs.spreadsheet') 
     59    ztc.installPackage(PROJECT_NAME) 
    5460 
    5561# The order here is important: We first call the (deferred) function 
     
    5864 
    5965setup_product() 
    60 ptc.setupPloneSite(products=['quintagroup.gdocs.spreadsheet']) 
     66ptc.setupPloneSite(products=[PROJECT_NAME]) 
    6167 
    6268class TestCase(ptc.PloneTestCase): 
  • quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/tests/test_doctest.py

    r2642 r2708  
    22import doctest 
    33 
    4 from zope.testing import doctestunit 
    5 from zope.component import testing, eventtesting 
     4#from zope.testing import doctestunit 
     5#from zope.component import testing, eventtesting 
    66 
    77from Testing import ZopeTestCase as ztc 
Note: See TracChangeset for help on using the changeset viewer.