Interlude for Doctests provides an Interactive Console.
Project description
Provides an interactive shell aka console inside your doctest case.
The console looks exact like in a doctest-case and you can copy and paste
code from the shell into your doctest. It feels as you are in the test case
itself. Its not pdb, it's a python shell.
In your doctest you can invoke the shell at any point by calling::
>>> interact( locals() )
To make your testrunner interlude aware following is needed:
1) import interlude
2) suite = DocFileSuite( ..., globs=dict(interact=interlude.interact), ...)
License
=======
`interlude` is copyright 2006-2010 by BlueDynamics Alliance, Klein & Partner KG,
Austria. It is under the `GNU Lesser General Public License (LGPLv3).
<http://opensource.org/licenses/lgpl-3.0.html>`_
- code repository at `github collective <http://github.com/collective/interlude>`_
- written by `Jens Klein <mailto:jens@bluedynamics.com>`_
- IPython support contributed by `Alan Justino <http://github.com/alanjds>`_
Changes
=======
1.1.1
-----
- fix broken release, include *.rst with MANIFEST.in
1.1
---
- IPython support - alanjds, 2010-12-19
1.0
---
- initial release
The console looks exact like in a doctest-case and you can copy and paste
code from the shell into your doctest. It feels as you are in the test case
itself. Its not pdb, it's a python shell.
In your doctest you can invoke the shell at any point by calling::
>>> interact( locals() )
To make your testrunner interlude aware following is needed:
1) import interlude
2) suite = DocFileSuite( ..., globs=dict(interact=interlude.interact), ...)
License
=======
`interlude` is copyright 2006-2010 by BlueDynamics Alliance, Klein & Partner KG,
Austria. It is under the `GNU Lesser General Public License (LGPLv3).
<http://opensource.org/licenses/lgpl-3.0.html>`_
- code repository at `github collective <http://github.com/collective/interlude>`_
- written by `Jens Klein <mailto:jens@bluedynamics.com>`_
- IPython support contributed by `Alan Justino <http://github.com/alanjds>`_
Changes
=======
1.1.1
-----
- fix broken release, include *.rst with MANIFEST.in
1.1
---
- IPython support - alanjds, 2010-12-19
1.0
---
- initial release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
interlude-1.1.1.tar.gz
(2.7 kB
view details)
File details
Details for the file interlude-1.1.1.tar.gz
.
File metadata
- Download URL: interlude-1.1.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4172b90d28506b29406c56561a8796d675689b249e7df20d3e5918419760fa28 |
|
MD5 | 834e68a41c4fffaf0095a669ca6f86b7 |
|
BLAKE2b-256 | 9e8b63b43ed5cf820957d710a0ffcc5588da8818e7fb193d5e68850d0537a446 |