Bob Hyman
26475146e2
Flake8 1 ( #3550 )
...
* flake8 fixes -- tests only
* fix ci failure
* integrate fix from is_3551 so tests will pass.
* Update tests/test_builtins.py
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-05-05 06:42:28 -04:00
Bob Hyman
94ac8f67f5
black-fix - split from ls_color for separate review ( #3431 )
...
* black-fix - split from ls_color for separate review
2020-02-14 09:09:34 -05: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
Anthony Scopatz
a00cf04a5f
black
2019-02-04 16:17:02 -05:00
Anthony Scopatz
b2faa470cd
news and tests
2019-02-04 16:15:29 -05:00
Anthony Scopatz
51f5002506
fixed eval aliases
2019-01-28 17:17:55 -05:00
Anthony Scopatz
fe82924ca9
add execer
2018-11-19 20:01:20 -05:00
Anthony Scopatz
2287067a11
try to fix alias tests by removing global state
2018-11-19 19:51:15 -05:00
Anthony Scopatz
c3c694d088
try builtins
2018-11-11 09:15:23 -06:00
Anthony Scopatz
1502efeef5
try to fix tests
2018-11-10 00:25:47 -06: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
laerus
2dd7c5541d
which refactor p1
2016-09-26 22:33:51 +03:00
Konstantinos Tsakiltzidis
ba6f63f143
Merge branch 'master' into pytest_migration
2016-06-29 16:58:08 +03:00
Anthony Scopatz
3276d06f01
removed ENV
2016-06-28 20:22:11 -04:00
Konstantinos Tsakiltzidis
a48e53130b
test_aliases/test_dirstack
2016-06-26 02:05:26 +03:00
Konstantinos Tsakiltzidis
daf3f89ae8
TODO list, conftest.py, some migrations
2016-06-25 01:15:48 +03:00
Konstantinos Tsakiltzidis
4b5119fc75
Merge branch 'master' into pytest_port
2016-06-23 03:02:39 +03:00
Konstantinos Tsakiltzidis
90fdda6908
test_builtins
2016-06-22 22:50:01 +03:00
Konstantinos Tsakiltzidis
8a0c447d96
test_aliases
2016-06-22 22:45:42 +03:00
Gil Forsyth
2c26fcaa64
update setup and teardown calls. only 1 test failing
2016-06-22 11:41:06 -04:00
Anthony Scopatz
696de57702
another win fix
2016-06-21 11:50:04 -04:00
Anthony Scopatz
e88abafc92
pathext windows test fixes
2016-06-21 11:43:08 -04:00
Morten Enemark Lund
cba99b5a7b
Updated tests to match the new whichgen returns
2016-05-18 23:09:35 +02:00
Morten Enemark Lund
f3e3362204
Add tests for which functionality. This does not test the actual alias function, only the whichgen() function we are using from the external which.py module.
2016-05-17 11:28:34 +02:00
Anthony Scopatz
4862a47b7c
fixed alias expansion
2016-04-10 12:13:36 -04:00
adam j hartz
a5f2b7019e
skip more test cases on windows
2015-12-19 18:44:58 -05:00
adam j hartz
3c487284b4
more test case fiddling
2015-12-19 18:09:06 -05:00
adam j hartz
36ba1b14bf
update tests for new aliasing
2015-12-19 17:29:48 -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
Klaus Alexander Seistrup
ee65f492f2
Removed trailing whitespace
2015-07-29 23:58:25 +02:00
Anthony Scopatz
402e393ad1
some test improvements
2015-03-25 18:32:10 -05:00
Mattias Ugelvik
1483159dd2
Recursive alias evaluation
2015-03-22 02:46:33 +01:00