Commit graph

474 commits

Author SHA1 Message Date
adam j hartz
36ba1b14bf update tests for new aliasing 2015-12-19 17:29:48 -05:00
adam j hartz
abe1e32076 add test for check_for_partial_string 2015-12-18 15:30:46 -05:00
adam j hartz
07176d664d update tests to have __xonsh_shell__ 2015-12-05 15:32:38 -05:00
Morten Enemark Lund
0061617f4e Update tests 2015-12-01 13:56:20 +01:00
Anthony Scopatz
881e84acb2 Merge branch 'pt_colors' of https://github.com/adqm/xonsh into adqm-pt_colors 2015-11-29 20:35:53 -05:00
Travis Shirk
5ba2b81fa4 test fix 2015-11-29 17:27:33 -07:00
Travis Shirk
5cda563f58 Fixes based on scopatz' feedback. 2015-11-29 16:50:20 -07:00
adam j hartz
1b20b53785 add custom color case to tests 2015-11-29 10:57:30 -05:00
adam j hartz
005aaf98cf attempt to fix test case 2015-11-29 10:55:19 -05:00
Travis Shirk
70383217a6 set type and unit test 2015-11-28 16:12:41 -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
Benjamin Pollack
533a7e915f Add support for -i and -l options
Support for the login option is very minimal, but the `XONSH_LOGIN`
variable is set in this case so that scripts may take an appropriate
action.

Fixes #517
2015-11-21 18:26:34 -05: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
4a7ebb6a86 some test fixes 2015-10-31 14:31:17 -04:00
Anthony Scopatz
ec6123fc86 first pass at setting encoding 2015-10-31 13:31:52 -04:00
Anthony Scopatz
f30c7db25e more test skipping 2015-10-20 17:53:12 -04:00
Anthony Scopatz
dffe71ae1a don't actually run many parser tests 2015-10-20 17:26:06 -04:00
Anthony Scopatz
84fb672c61 added most of teepty delay 2015-10-11 14:01:15 -04:00
Anthony Scopatz
1e24bbb2ed added tests for foreign shells 2015-10-10 19:52:53 -04:00
Anthony Scopatz
338769c163 line ending fixes 2015-10-10 13:05:19 -04:00
Burak Yigit Kaya
3bcc38b447 Fix invalid lexer type error
Anything stored in `env` is always cast to string so remove
`HIGHLIGHTING_LEXER` variable since it is directly passed to
prompt_toolkit and it is always a string when restoring from `env`
causing `prompt_toolkit` to throw an error because it expects a `Lexer`
instance.
2015-10-06 11:40:27 +03:00
Anthony Scopatz
9e25ec1f6f await implement 2015-09-27 01:09:28 -04:00
Anthony Scopatz
c6fdab6e11 full async 2015-09-27 00:30:49 -04:00
Anthony Scopatz
d86574d4b6 prelim async with 2015-09-27 00:24:40 -04:00
Anthony Scopatz
944afcbf76 async funcdefs and decorators 2015-09-26 23:52:31 -04:00
Anthony Scopatz
a86b5c3a2e forgot to skip tests 2015-09-26 22:55:35 -04:00
Anthony Scopatz
34b39f3dc1 added matmult 2015-09-26 22:54:12 -04:00
Anthony Scopatz
7d525e8fe5 some really silly fixes 2015-09-26 22:27:36 -04:00
Anthony Scopatz
85b55b051e more stuff 2015-09-26 21:27:49 -04:00
Anthony Scopatz
e1f81baa30 more working 2015-09-26 21:13:03 -04:00
Anthony Scopatz
d81406f1de yet another test 2015-09-26 20:32:26 -04:00
Anthony Scopatz
ba3b7511c4 added a couple of tests 2015-09-26 20:30:44 -04:00
Anthony Scopatz
39f04896f7 added tests 2015-09-26 15:50:23 -04:00
Anthony Scopatz
12a07953ea more stuff 2015-09-13 15:30:49 -04:00
Anthony Scopatz
036608137c fixed merge conflict 2015-08-25 20:55:08 -04:00
Morten Enemark Lund
ca6a1753c9 Update test for prompt_toolkit_tools 2015-08-24 09:48:24 +02:00
Anthony Scopatz
7d70392a0c allow history inspection post-at-exit 2015-08-23 19:29:35 -04:00
Anthony Scopatz
ebeb4bcdc0 some more replay test fixes 2015-08-23 17:00:26 -04:00
Anthony Scopatz
43bc6d48c2 some replay tests 2015-08-23 16:50:54 -04:00
Anthony Scopatz
6f854b800b begging of history command 2015-08-23 11:30:07 -04:00
Morten Enemark Lund
078b818396 Finished coloring implementation for prompt-toolkit shell. 2015-08-22 23:41:38 +02:00
Anthony Scopatz
d4afd13863 Merge branch 'master' into hist-next 2015-08-19 10:04:08 -04:00
Robert W. Brewer
c831e9bbc7 Merge branch 'master' into prompt-toolkit-fixes 2015-08-17 23:20:20 -04: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