Provides simple classes to be used for unit testing PythonScript and FSPythonScripts from Zope / Plone.
Uses the bare minimum of setup code and does not require Zope or Plone to run.
Example usage
>>> from isotoma.zope.testpythonscript import PythonScript >>> my_script = """## Script to output stuff given to it ... ##bind container=container ... ##bind context=context ... ##bind namespace=namespace ... ##bind script=script ... ##bind state=state ... ##bind traverse_subpath=traverse_subpath ... ##parameters=name=None ... ##title= ... ## ... return 'Hello world! Hello %s!' % name ... """ >>> py_script = PythonScript(my_script, 'my_script') >>> py_script(name='Foo') 'Hello world! Hello Foo' >>>
See the documentation of isotoma.zope.testpythonscript.script for full details of the class and of FSPythonScript.
See isotoma.zope.testpythonscript.tests.test_script for more examples.
Metadata
Release files for isotoma.zope.testpythonscript 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| isotoma.zope.testpythonscript-1.0.0.tar.gz | 4.7 kB | Without provenance | Details for isotoma.zope.testpythonscript-1.0.0.tar.gz |
Release files / isotoma.zope.testpythonscript-1.0.0.tar.gz
| Download URL | isotoma.zope.testpythonscript-1.0.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7180ee40b69ec1452cda69d95ef4e7278e0d5fad67867bb06aa85792ce533196
|
|
BLAKE2b-256 checksum How to use checksums |
be1a00ccf94b2c29fc4a28475871043fc8894355e1365772daf5a4e38ef02052
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for isotoma.zope.testpythonscript 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.