Skip to main content

UNKNOWN

Project description

Change history

1.0 (xxxx-xx-xx)

  • Created recipe with ZopeSkel [“”].

Detailed Documentation

Tests for jalon.pas.bdd

test setup

>>> from Testing.ZopeTestCase import user_password
>>> from Products.Five.testbrowser import Browser
>>> browser = Browser()

Plugin setup

>>> acl_users_url = "%s/acl_users" % self.portal.absolute_url()
>>> browser.addHeader('Authorization', 'Basic %s:%s' % ('portal_owner', user_password))
>>> browser.open("%s/manage_main" % acl_users_url)
>>> browser.url
'http://nohost/plone/acl_users/manage_main'
>>> form = browser.getForm(index=0)
>>> select = form.getControl(name=':action')

jalon.pas.bdd should be in the list of installable plugins:

>>> 'Bdd Helper' in select.displayOptions
True

and we can select it:

>>> select.getControl('Bdd Helper').click()
>>> select.displayValue
['Bdd Helper']
>>> select.value
['manage_addProduct/jalon.pas.bdd/manage_add_bdd_helper_form']

we add ‘Bdd Helper’ to acl_users:

>>> from jalon.pas.bdd.plugin import BddHelper
>>> myhelper = BddHelper('myplugin', 'Bdd Helper')
>>> self.portal.acl_users['myplugin'] = myhelper

and so on. Continue your tests here

>>> 'ALL OK'
'ALL OK'

Contributors

“”, Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jalon.pas.bdd, version 3.0
Filename, size File type Python version Upload date Hashes
Filename, size jalon.pas.bdd-3.0.tar.gz (14.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page