Commit graph

53 commits

Author SHA1 Message Date
Anthony Scopatz
b32823d236 replace yield fixtures 2018-11-19 20:22:18 -05:00
Anthony Scopatz
4c91df2abc many test fixes 2018-09-13 14:03:35 -04:00
Anthony Scopatz
634a8ec9f2 black tests 2018-08-30 09:18:49 -05:00
David Strobach
cbf519b80f history show - add optional null-delimited output 2018-07-26 19:51:50 +02:00
Hugo Wang
4a5b561014 Merge branch 'master' of github.com:mitnk/xonsh into hist-be 2017-02-05 22:07:16 +08:00
Hugo Wang
4746d6d4a4 adding tests 2017-02-05 22:02:27 +08:00
laerus
487366592d history indexing replaced namedtuple with SimpleNamespace 2017-01-29 15:22:46 +02:00
laerus
a76f312d89 changed history indexing api 2017-01-26 18:24:33 +02:00
Hugo Wang
dbfc03975d history show all contains session items 2016-12-19 20:59:37 +08:00
Hugo Wang
0cc6a8b4ff made json history buffer with all hists 2016-12-11 16:33:45 +08:00
Hugo Wang
00c29766b5 wip - update json history rtns 2016-12-10 22:45:21 +08:00
Hugo Wang
18a70a1658 update tests 2016-11-27 16:40:39 +08:00
laerus
295e04a7c4 typo 2016-08-29 13:46:22 +03:00
laerus
a3c1dfd28e generators everywhere 2016-08-29 02:45:36 +03:00
laerus
ffb4e5e035 docs/tests 2016-08-28 22:17:26 +03:00
laerus
e7540488f7 history magic 2016-08-27 17:30:53 +03:00
Konstantinos Tsakiltzidis
6a44cf7f25 show timestamps option 2016-08-10 17:20:33 +03:00
Konstantinos Tsakiltzidis
733d871770 datetime_format arg 2016-08-09 21:26:08 +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
1a362c600b cleanup, fix for new test case 2016-07-30 23:29:53 +03:00
laerus
14f37adf20 new failing tests for _hist_parse_args 2016-07-29 19:24:08 +03:00
laerus
9ac637a3c8 docs / test_show_cmd ref 2016-07-23 11:38:20 +03:00
laerus
122242d499 cleanup/restore old functons 2016-07-20 15:16:46 +03:00
laerus
467d161af2 new top level parse_args/x failing tests
next: _hist_create_parser ref, history_main ref
2016-07-18 19:23:13 +03:00
laerus
3a3c6db72d test ref/new failing tests for >1 slice args 2016-07-18 16:30:28 +03:00
laerus
b8fb97618a tests ref, hist fixture 2016-07-16 21:39:32 +03:00
laerus
380bc4a52c 'tweak tests' 2016-07-16 21:27:05 +03:00
laerus
41b5f7ec6a 'small cleanup of old mock_xonsh_env' 2016-07-03 20:19:37 +03:00
Konstantinos Tsakiltzidis
6760c3dfc4 test_history/test_replay(buggy) 2016-06-28 13:47:35 +03:00
Gil Forsyth
560ebb5b1d ugly hack on test_main and finish test_history 2016-06-22 18:28:07 -04:00
Gil Forsyth
6f4fc7564e cleanup and extra fixes 2016-06-22 18:23:36 -04:00
Gil Forsyth
9fdc062427 update history tests to pytest 2016-06-22 17:41:13 -04:00
JohnLunzer
36f3ec6955 Merge xonsh master. Make hopefully final changes. 2016-06-17 10:11:59 -04:00
Anthony Scopatz
51f61ca5cb fixed history tests 2016-06-16 00:43:02 -04:00
JohnLunzer
09b4934775 Slew of changes which should address all issues brought up in the PR review. 2016-06-14 10:37:31 -04:00
JohnLunzer
cd07eb1b92 Fixed some bugs, updated tests 2016-06-13 10:41:43 -04:00
Gil Forsyth
99ea707ae7 fix broken imports in certain tests
these were introduced in a few places but there is no __init__.py file
in the tests directory so the import breaks (at least on my machine)
2016-05-19 15:17:42 -04:00
Travis Shirk
5cda563f58 Fixes based on scopatz' feedback. 2015-11-29 16:50:20 -07:00
Travis Shirk
2920d83fc6 Debug cruft 2015-11-27 13:22:12 -07:00
Travis Shirk
bdeb690fb0 Tests for HISTCONTROL 2015-11-27 13:17:57 -07:00
Kurtis Rader
e88c863d10 Add a uniform character encoding to all files.
I wouldn't normally do something like this but issue #487 brought to
my attention the fact that too many of the python modules don't have
an encoding comment and of those that do there is a lot of pointless
inconsistency in the style of the comment.
2015-11-16 14:10:40 -08:00
Kurtis Rader
7ccfb171aa Make history module mostly lint clean.
This fixes most of the lint errors in the history code. It also fixes
two bugs that were found by pylint due to misnamed variables. This patch
does not make any functional changes. I'll fix the remaining lint errors
in a subsequent patch when I tackle cross-module issues.
2015-11-14 19:56:26 -08:00
Kurtis Rader
4be4509a2e Modify the code to comply with the alias API. 2015-11-06 17:38:08 -08:00
Kurtis Rader
5cc784a721 Correct function names to follow PEP8. 2015-11-06 15:12:33 -08:00
Kurtis Rader
a14a9a6f4d Correct handling of negative history indexes.
Fix the handling of negative history indexes where a slice specification
is involved. Negative indexes not part of a slice specification worked by
accident because the argparse module (see section "16.4.4.3 Arguments
containing --") treats such values as positional arguments (which is a
misfeature of argparse in my opinion). I've also added unit tests for
"history show" to keep this from being broken in the future.
2015-11-05 19:35:41 -08:00
Anthony Scopatz
70e87e37cf added lazy command fields to history 2015-08-16 21:41:02 -04:00
Anthony Scopatz
b456193a33 windows newline issue fix, hopefully 2015-08-12 01:04:03 -04:00
Anthony Scopatz
201aacdda6 seek from 0 2015-08-12 00:33:17 -04:00
Anthony Scopatz
fc0d00c774 try closing lj 2015-08-11 23:30:50 -04:00