| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
(forgot to commit earlier)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Tests:
- if the link doesn't exist yet
- if the link already exists
- if it is a symlink to something else
- if it exists but is not a symlink
This commit sponsored by Lon Koenig. Thank you!
|
|
|
|
| |
This commit sponsored by Samuel Vale. Thank you!
|
|
|
|
|
|
| |
Revert "Always activate testing in every test module ever."
This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e.
|
|
|
|
| |
Kind of a dorky way to implement this, but...
|
|
|
|
|
|
|
|
|
|
|
| |
This allows for modifying any context *right before render*, including
access to the variables that are passed in. This test takes advantage
of that and takes one of the variables, "doubleme", and modifies
it (doubles it!)
In our case it turns "happy" and "joy" into "happyhappy" and "joyjoy".
This commit sponsored by Mark Holmquist. Thank you!
|
| |
|
|
|
|
|
|
| |
Needs documentation though... that's coming next :)
This commit sponsored by Luca Tius. Thanks Luca!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not the working solution, but getting there conceptually. Basically
we'll have a key with the view and the template as a tuple which is
the context hook that anyone can attach to.
However, some changes have still to be made:
- The unit test doesn't work yet and contains a set_trace ;)
- We'll probably switch the "view" component from being the callable
to the "urlgen"'able name per Elrond's suggestion
- Found a bug in unit tests related to running custom apps for
different configs... hm. I need to fix this!
Nonetheless, making progress.
This commit sponsored by... wait a minute... Christopher Webber?!
|
|
|
|
| |
This commit sponsored by David Ahmed. Thank you!
|
|
|
|
| |
All the hook_* tests use the same config, so refactor it.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- Added three "callables" test plugins.
- updated callable_runone to check for unhandled_okay in the kwargs
dict.
All passing!
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reworks the plugin infrastructure so as to remove module-loading
side-effects which were making things a pain in the ass to test.
With the new system, there's no auto-registering meta class. Instead
plugins do whatever they want and then specify a hooks dict that maps
hook names to callables for the things they're tying into. The most
common one (and the only one we've implemented so far) is "setup".
This also simplifies the sampleplugin a little by moving the code
to __init__.py.
|
|
* implements installing, loading and setup for plugins
* codifies configuration
* has a sample plugin
* docs
* tests
|