Commit graph

1317 commits

Author SHA1 Message Date
Morten Enemark Lund
50155c66e3
Merge pull request #3329 from xonsh/ctxvars
Context vars fix
2019-10-03 21:53:08 +02:00
Anthony Scopatz
2f0b04f4e5
version_info 2019-10-03 10:27:38 -04:00
Anthony Scopatz
5e7df84548 color modifier fix 2019-10-02 16:37:16 -04:00
Anthony Scopatz
f0160e54d8 fix tests for <v3.7 2019-10-01 17:01:20 -04:00
Anthony Scopatz
5afba70f1e Context vars fix 2019-10-01 16:56:27 -04:00
Christopher J. Wright
7a2fe402cd remove dict edge case 2019-09-11 12:14:48 -04:00
Christopher J. Wright
ba17914524 add test 2019-09-11 11:56:38 -04:00
Gil Forsyth
9acc111d65
Merge pull request #3277 from astronouth7303/xontrib-autovox
Add autovox xontrib
2019-09-09 16:32:55 -04:00
Morten Enemark Lund
7829074d9a
Merge pull request #3307 from xonsh/fnf_exit_1
Non-zero exit code when script path not found
2019-09-09 22:12:41 +02:00
Gil Forsyth
6e09e3c266
Non-zero exit code when script path not found 2019-09-09 14:39:36 -04:00
Jamie Bliss
0b9ab83c86 Only run autovox test on Py3.6+ 2019-08-28 15:02:41 -04:00
Jamie Bliss
f8e5e9521b Write test for autovox 2019-08-28 14:50:27 -04:00
Jamie Bliss
3586da78da Add is_manually_set() to DummyEnv 2019-08-28 14:50:07 -04:00
Jamie Bliss
f0b49f0c81 Add ... support to DummyEnv 2019-08-28 14:30:04 -04:00
Jamie Bliss
cf45a946eb Fix masked test names 2019-08-28 14:07:27 -04:00
Anthony Scopatz
4975977b2b new check_output() test 2019-08-27 11:03:26 -04:00
Anthony Scopatz
dd16d59d86
Merge pull request #3251 from cjrh/vox-activate-absolute-path
vox activate: use absolute path in $PATH
2019-08-25 13:21:16 -04:00
Gil Forsyth
e4fada56b0 Allow logical operators within aliases
This fixes #3270 and logical operators within aliases now resolve correctly.

I've added in `&&`, `||`, `and`, and `or`

```
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" and echo "there"'
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ echocat
hi
there
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" or echo "there"'
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ echocat
hi
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" && echo "there"'
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ echocat
hi
there
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ aliases['echocat'] = 'echo "hi" || echo "there"'
(base)   ~/githu/xonsh/xonsh logical_op_aliases $ echocat
hi
```
2019-08-16 15:17:31 -04:00
Caleb Hattingh
3b8d8472cb Trying to fix CI failure on Windows Python 3.5 2019-08-16 20:33:51 +10:00
Caleb Hattingh
eb8971dc7b Make the new path parameter explicit in the tests. 2019-08-15 23:23:09 +10:00
Caleb Hattingh
220923f084 Include path as a kwarg on activate and deactivate events 2019-08-14 17:50:06 +10:00
Anthony Scopatz
5f30593dfe target color 2019-08-06 14:39:11 -04:00
Caleb Hattingh
16edba8fe8 Apply abspath() to the env_dir, and add a test to verify. 2019-08-04 12:20:04 +10:00
Anthony Scopatz
65fea7dda8
Merge pull request #3200 from virusbb001/3182-fix-cat-proc-file
Fix `cat` can't read pseudo files with zero size
2019-07-23 11:44:06 -04:00
Gil Forsyth
c0b7d1166a
Skip broken test on Windows (sorry)
This is a workaround for strange non-deterministic behavior in pytest
2019-07-13 14:56:17 -04:00
virus
344671ba42 add to restore the deleted new line 2019-07-06 14:28:24 +09:00
Gil Forsyth
839e0ad1a6
Fix pip completer misfires on bagpipes and similar
Requires a word-ending before `pip`, also adding in support for `xpip`
2019-05-30 15:25:16 -04:00
Gil Forsyth
8c6fc1332d
Merge pull request #3141 from xonsh/ansi_colors_style_bw
Ansi colors style bw
2019-05-28 07:58:16 -04:00
Jean-Benoist Leger
5b31fcc643
adding test to prevent missing color defs in ANSI styles 2019-05-27 18:45:00 +02:00
virus
7d97459836 use isinstance for check type 2019-05-23 01:12:58 +09:00
virus
b32525f1b6 add test to check working predict_threadable
Currently, this test fails only on windows.
2019-05-23 01:12:56 +09:00
Jean-Benoist Leger
d81a40efbc
change the env variable used for testing delitem behavior for default values in environ 2019-05-15 23:23:49 +02:00
Gil Forsyth
3b011dcfd1
Merge pull request #3107 from laloch/noexpand-raw-string
Do not attempt to expand raw strings in subprocess mode
2019-05-15 15:11:49 -04:00
Anthony Scopatz
f1127ed916 Revert "updated setup.py for Python 3.4 (revert of 91ec14bb6d)"
This reverts commit 002a317951.
2019-05-14 17:41:35 -04:00
Anthony Scopatz
002a317951 updated setup.py for Python 3.4 (revert of 91ec14bb6d) 2019-05-14 17:32:31 -04:00
David Strobach
450a25f4b0 Test parsing of raw string literals in subprocess mode 2019-05-09 19:34:30 +02:00
Anthony Scopatz
298f138d5e
Merge pull request #3113 from rodrigogolive/remove_py34
Drop support for Python 3.4
2019-05-06 18:15:25 -04:00
Rodrigo Oliveira
91ec14bb6d Drop support for Python 3.4
Minimal required Python version is now 3.5.
2019-05-06 16:51:32 -03:00
Ad115
9c3a28e011 Updated prompt test to handle new behavior 2019-05-06 13:53:11 -05:00
Jean-Benoist Leger
934f337ab1
add test on Env.__delitem__ 2019-04-26 20:27:45 +02:00
virus
5eb745998c xoreutils: rework cat pseudo device again 2019-04-24 22:19:07 +09:00
virus
fb5cd6e3a3 add missing fixture 2019-04-24 22:19:07 +09:00
virus
8b4bd37501 fix of testing when linesep is not "\n" 2019-04-24 22:19:07 +09:00
virus
6ffe2f22db fix failing removing file on windows 2019-04-24 22:19:07 +09:00
virus
e10f090fb9 add test of xoreutils's cat 2019-04-24 22:19:07 +09:00
Morten Enemark Lund
4516a7afda
Merge pull request #3084 from jb-leger/tests_main_AttributeError
Solve AttributeError in test_main and test_ptk_highlight
2019-04-24 07:53:38 +02:00
Jean-Benoist Leger
7725fd5ee0
Properly clean builtins.__xonsh__ before running test in tests/test_ptk_highlight.py 2019-04-19 23:19:40 +02:00
Jean-Benoist Leger
30afd0d13a
Properly clean builtins.__xonsh__ before running test in tests/test_main.py 2019-04-19 23:19:25 +02:00
Jean-Benoist Leger
76222d4244
force --no-gpg-sign for git commit in tests 2019-04-19 14:34:20 +02:00
Kale Kundert
6b0c0dd49f
Add tests (and don't use f-strings). 2019-03-16 11:18:48 -04:00