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
Anthony Scopatz
49b2f8d7d8
newb error
2016-08-14 18:52:39 -04:00
Bob Hyman
50ec44656b
Merge branch 'misc_fix' into winUncpushd
2016-08-14 17:33:39 -04:00
Anthony Scopatz
b3af85f649
Merge pull request #1520 from laerus/hist_ts
...
history show filter by timestamps
2016-08-12 14:30:25 +10:00
Matthias Bussonnier
3c7753f4be
Fix tests, document, and make install_hook() install only once.
2016-08-10 18:20:54 -07:00
Jamie Bliss
35fca07db6
Test loading of xsh-based xontribs
2016-08-10 17:26:20 -07:00
Konstantinos Tsakiltzidis
6a44cf7f25
show timestamps option
2016-08-10 17:20:33 +03:00
Konstantinos Tsakiltzidis
f362165491
ensure_timestamp basic
2016-08-10 16:49:06 +03:00
Konstantinos Tsakiltzidis
733d871770
datetime_format arg
2016-08-09 21:26:08 +03:00
Bob Hyman
dc7fbc1e06
mask off non-unix code for travis
2016-08-05 00:21:56 -04:00
Bob Hyman
6fbe13b2ed
unc mapping tests pass; need to test registry later
2016-08-04 23:59:27 -04:00
Bob Hyman
7a427bef68
Merge branch 'master' into winuncpushd
2016-08-04 20:53:58 -04:00
Bob Hyman
ff6685b97e
interim
2016-08-04 20:52:41 -04:00
Jamie Bliss
cdd66b4511
Merge remote-tracking branch 'upstream/master' into events
2016-08-04 15:26:21 -04:00
Konstantinos Tsakiltzidis
c390021089
ensure_slice fix for -1
2016-08-04 14:14:22 +03:00
Anthony Scopatz
26ab42232a
Merge pull request #1524 from astronouth7303/xontrib-all
...
Add support for `__all__` in xontribs
2016-08-03 10:22:21 -07:00
Jamie Bliss
5816059c3c
Some fixes from the PR
2016-08-03 11:57:20 -04:00
Jamie Bliss
aac8db471a
Fixed a flaw in the test setup. Tests pass now.
2016-08-03 00:42:36 -04:00
Jamie Bliss
ef51910d2e
Add some tests (which are failing)
2016-08-03 00:33:39 -04:00
Konstantinos Tsakiltzidis
d3793a3f99
catch errors when calling _hist_get
2016-08-02 15:59:11 +03:00
laerus
41750045c2
ensure_timestamp p1
2016-08-01 15:01:17 +03:00
laerus
56da0e784c
add timestamp option to arg parsers
2016-08-01 12:09:48 +03:00
laerus
9a233e0c95
docs fix/old test tweak
2016-07-31 02:22:26 +03:00
laerus
c063bff450
Merge branch 'master' into hist_ref
2016-07-31 01:32:40 +03:00
laerus
1a362c600b
cleanup, fix for new test case
2016-07-30 23:29:53 +03:00
Jamie Bliss
9d727652c7
Fix #1513
...
Forgot to copy a mutated value on save. Added a test to prevent
regression.
2016-07-30 03:35:39 -04:00
laerus
14f37adf20
new failing tests for _hist_parse_args
2016-07-29 19:24:08 +03:00
Bob Hyman
37de453104
no test failures due to my changes.
2016-07-29 11:47:32 -04:00
Bob Hyman
4c6318c4f7
Merge branch 'master' into winuncpushd
2016-07-29 11:37:38 -04:00
laerus
d2536198ae
Merge branch 'master' into hist_ref
2016-07-28 20:18:45 +03:00
Jamie Bliss
eddd11ae86
Add tests for the events system.
2016-07-28 00:42:00 -04:00
Gil Forsyth
fc3956c3fd
remove unused os import
2016-07-26 14:05:01 -04:00
Gil Forsyth
afea01aefc
better on_conda check that doesn't rely on which
2016-07-26 10:09:09 -04:00
Gil Forsyth
cb8ecdc440
hacky workaround for appveyor (for the moment)
2016-07-25 10:16:32 -04:00
Gil Forsyth
9ac3d29e7d
add 'skip if on conda' fixture to vox tests
2016-07-23 17:27:27 -04:00
Gil Forsyth
10d06dc78b
skip vox tests for the moment
2016-07-23 11:21:41 -04:00
laerus
9c56f1e7e3
'ensure_slice for empty vals, tweak tests'
2016-07-23 13:32:24 +03:00
laerus
9ac637a3c8
docs / test_show_cmd ref
2016-07-23 11:38:20 +03:00
laerus
91b9e81312
ensure_slice accepts sequences
2016-07-23 09:53:38 +03:00
laerus
d5ca1adc1b
tools ensure_slice accept slice obj
2016-07-21 16:54:34 +03:00
Leonardo Santagada
ec4c346b0b
Merge branch 'master' into remove-flake8-exceptions
2016-07-21 00:05:17 +02:00
Anthony Scopatz
fc6ac3b87f
Merge pull request #1456 from astronouth7303/vox_api
...
Vox API
2016-07-20 16:22:34 -05:00
Jamie Bliss
50f34fa352
Refactor machinery into voxapi in order to minimize global namespace pollution.
2016-07-20 16:22:23 -04:00
Leonardo Santagada
51b3c98589
Merge remote-tracking branch 'upstream/master' into remove-flake8-exceptions
2016-07-20 22:15:56 +02:00
Leonardo Santagada
4337b1489b
revert changes based on review
2016-07-20 22:07:45 +02:00
Jamie Bliss
7a05377443
Migrate vox to a xontrib
2016-07-20 15:45:14 -04:00
Jamie Bliss
4175d48b93
Add Vox class (and some basic tests for it)
2016-07-20 14:50:22 -04:00