Skip to main content

A pas Plugin for SygeFor connexion

Project description

Change history

1.0 (xxxx-xx-xx)

  • Created recipe with ZopeSkel [“”].

Detailed Documentation

Tests for jalon.pas.sygefor

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))
>>>"%s/manage_main" % acl_users_url)
>>> browser.url
>>> form = browser.getForm(index=0)
>>> select = form.getControl(name=':action')

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

>>> 'Sygefor Helper' in select.displayOptions

and we can select it:

>>> select.getControl('Sygefor Helper').click()
>>> select.displayValue
['Sygefor Helper']
>>> select.value

we add ‘Sygefor Helper’ to acl_users:

>>> from jalon.pas.sygefor.plugin import SygeforHelper
>>> myhelper = SygeforHelper('myplugin', 'Sygefor Helper')
>>> self.portal.acl_users['myplugin'] = myhelper

and so on. Continue your tests here

>>> 'ALL OK'


“”, Author

Project details

Release history Release notifications

This version


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.sygefor, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size jalon.pas.sygefor-1.1.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page