Changeset 2708 in products
- Timestamp:
- Jul 20, 2010 6:15:53 PM (15 years ago)
- 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 34 34 35 35 We have the login portlet, so let's use that. 36 36 37 >>> browser.getLink('Log in').click() 37 38 >>> browser.getControl(name='__ac_name').value = portal_owner 38 39 >>> browser.getControl(name='__ac_password').value = default_password … … 79 80 80 81 >>> browser.getControl(name='title').value = 'GSpreadsheet Sample' 82 >>> browser.getControl(name='spreadsheet_id').value = 'id' 83 >>> browser.getControl(name='worksheet_id').value = 'od1' 81 84 >>> browser.getControl('Save').click() 82 85 >>> 'Changes saved' in browser.contents … … 92 95 >>> browser.getLink('Edit').click() 93 96 >>> browser.getControl(name='title').value = 'New GSpreadsheet Sample' 97 >>> browser.getControl(name='spreadsheet_id').value = 'id1' 98 >>> browser.getControl(name='worksheet_id').value = 'od6' 94 99 >>> browser.getControl('Save').click() 95 100 -
quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/tests/base.py
r2642 r2708 22 22 # All of Plone's products are already set up by PloneTestCase. 23 23 24 PROJECT_NAME = 'quintagroup.gdocs.spreadsheet' 25 24 26 @onsetup 25 27 def setup_product(): … … 37 39 fiveconfigure.debug_mode = True 38 40 import quintagroup.gdocs.spreadsheet 41 import quintagroup.gauth 42 import Products.DataGridField 39 43 zcml.load_config('configure.zcml', quintagroup.gdocs.spreadsheet) 44 zcml.load_config('configure.zcml', quintagroup.gauth) 45 zcml.load_config('configure.zcml', Products.DataGridField) 40 46 fiveconfigure.debug_mode = False 41 47 … … 51 57 # ztc.installPackage('borg.localrole') 52 58 53 ztc.installPackage( 'quintagroup.gdocs.spreadsheet')59 ztc.installPackage(PROJECT_NAME) 54 60 55 61 # The order here is important: We first call the (deferred) function … … 58 64 59 65 setup_product() 60 ptc.setupPloneSite(products=[ 'quintagroup.gdocs.spreadsheet'])66 ptc.setupPloneSite(products=[PROJECT_NAME]) 61 67 62 68 class TestCase(ptc.PloneTestCase): -
quintagroup.gdocs.spreadsheet/trunk/quintagroup/gdocs/spreadsheet/tests/test_doctest.py
r2642 r2708 2 2 import doctest 3 3 4 from zope.testing import doctestunit5 from zope.component import testing, eventtesting4 #from zope.testing import doctestunit 5 #from zope.component import testing, eventtesting 6 6 7 7 from Testing import ZopeTestCase as ztc
Note: See TracChangeset
for help on using the changeset viewer.