summaryrefslogtreecommitdiff
path: root/tests/utilities.py
Commit message (Collapse)AuthorAge
* Move screen stop/start logic into context manager.Thomas Nixon2018-02-19
| | | | | | | As well as reducing duplication and adding screen size detection to :pipeto and :pyshell, this ensures that the screen is always restarted, resulting in cleaner error handling if an error occurs while the screen is stopped.
* Move mock ui creation to function.Thomas Nixon2018-02-19
|
* tests/utilities: Add expected_failure decorator for twisted.trial testsDylan Baker2017-08-22
| | | | | | | | | Twisted.trail.unittest doesn't provide an expectedFailure decorator, nor does it work with the one from the builtin library. Instead it relies on having a "todo" attribute set. This new utilities decorator simply sets that attribute to a string value (booleans don't work).
* convert from pygpgme to the python "gpg" moduleDaniel Kahn Gillmor2017-08-14
| | | | | | | | | | | | | | | This converts from the now abandoned pygpgme project for wrapping gpgme, to the upstream gpgme python bindings (which are descended from the pyme project, before they became official). Largely this change should not be user visible, but there are a couple cases where the new bindings provide slightly more detailed error messages, and alot directly presents those messages to users. This patch has been significantly revised and updated by Dylan Baker, but was originally authored by Daniel Kahn Gillmor. Fixes #1069
* tests/utilities: Allow uid to be passed to make_uidDylan Baker2017-07-24
|
* tests/utilities: have make_key rely on make_uidDylan Baker2017-07-24
|
* tests: move shared helpers out of crypto module into common moduleDylan Baker2017-07-24
|
* tests/crypto: Add tests for the crypto moduleDylan Baker2017-07-15
| | | | | | This covers mosts of the functions in the crypto module, but doesn't bother with the hash_key function, which is slated for deletion in the port to python-gpg. It also doesn't cover re-raising errors.
* tests: Add a module with some extra utility helpersDylan Baker2017-07-11
This module currently only contains a class that adds a class level addCleanup function (called addClassCleanup).