Skip to main content

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

Download

Download files

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

Source Distribution

jalon.pas.bdd-3.0.tar.gz (14.6 kB view details)

Uploaded Source

File details

Details for the file jalon.pas.bdd-3.0.tar.gz.

File metadata

  • Download URL: jalon.pas.bdd-3.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jalon.pas.bdd-3.0.tar.gz
Algorithm Hash digest
SHA256 1abbbaf3ec6d7d976a193489de6404a277ca6299a58e8141aaa16286c14b25c9
MD5 60283275b34455d87c1ac8de3057694d
BLAKE2b-256 0828037fef605c2c0402ee3a0d9e2b60e7aaff3154934446e3aaa2135c4d76be

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0 This release

1 file

2.2.2r184

1 file

2.2.1r181

1 file

2.2r164

1 file

2.1r161

1 file

1.0.1r155

1 file

1.0r131

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page