Anthony Scopatz
9b91ec5154
some fixes, but not enough
2019-02-12 18:32:11 -05:00
Anthony Scopatz
634a8ec9f2
black tests
2018-08-30 09:18:49 -05:00
Jamie Bliss
2acb4eb9be
Add ** to all the test handlers
2017-01-14 18:12:09 -05:00
Jamie Bliss
2f02e01de3
Make events keyword-only for future proof.
2017-01-14 17:31:29 -05:00
Jamie Bliss
dbe14a2673
Actually implement LoadEvent
2016-11-28 18:57:41 -05:00
Anthony Scopatz
5985c3d33b
hot fix for pytest events
2016-08-28 10:32:10 -04:00
Anthony Scopatz
78a87d0304
some emergency fixup
2016-08-28 09:57:31 -04:00
Jamie Bliss
0ad9a2e2ab
Add test to detect event typos
2016-08-27 21:44:26 -04:00
Jamie Bliss
4be3bf8950
Test for naming classes by string, too
2016-08-23 23:58:22 -04:00
Jamie Bliss
4ba21c9b16
Actually test event transmogrification
2016-08-23 23:54:29 -04:00
Jamie Bliss
1c1122b742
Refactor everything.
...
(Maybe I should have broken this up better?)
2016-08-23 23:44:05 -04:00
Jamie Bliss
5141fadfb4
Do some magic to make event docstrings work
2016-08-15 23:22:19 -04:00
Jamie Bliss
81d066a341
Rename so that __call__() is to register
...
```
@events.on_spam
def myhandler(eggs):
...
```
2016-08-15 23:13:44 -04:00
Jamie Bliss
44333fdcd5
Remove problematic "loopback" event style.
...
This has limited use because you have to do it in such a way that different
handlers don't step on each other or blow up on input they don't understand.
The worst case is the first use-case: command preprocessing.
2016-08-15 23:03:32 -04:00
Jamie Bliss
9dcd0f9fbf
Add validators, plus some clarity and PEP8 fixes
2016-08-15 22:59:30 -04:00
Jamie Bliss
eddd11ae86
Add tests for the events system.
2016-07-28 00:42:00 -04:00