Commit graph

69 commits

Author SHA1 Message Date
Noorhteen Raja NJ
38295a1dd9
Remove globals (#4280)
* refactor: remove usage of global variables in abbrevs.py

* chore: add flake8-mutable to prevent mutable defaults

* fix: abbrevs expand test

* refactor: add xonsh session singleton

* refactor: fix circular errors when using xonshSession as singleton

* refactor: remove black magicked builtin attributes

* style: black format tests as well

* refactor: update tests to use xonsh-session singleton

* refactor: update abbrevs to not use builtins

* test: remove DummyCommandsCache and patch orig class

* fix: failing test_command_completers

* test: use monkeypatch to update xession fixture

* fix: failing test_pipelines

* fix: failing test_main

* chore: run test suit as single invocation

* test: fix tests/test_xonsh.xsh

* refactor: remove builtins from docs/conf.py

* fix: mypy error in jobs

* fix: test error from test_main

* test: close xession error in test_command_completers

* chore: use pytest-cov for reporting coverage

this will include subprocess calls, and will increase coverage

* style:
2021-05-20 13:14:26 +03:00
Anthony Scopatz
3afd5430a0
Procs Initial Refactor (#3897)
* refectored builtins

* refectored posix and readers

* refectored posix and readers

* proxies

* pipelines

* basic procs import cleanup

* fixed / refactored tests

* procs docs

* amalgamate

* XONSH_DEBUG=1 in tests

* exclude xonsh.procs mypy

* Use `pip install` instead of `python setup.py install`

* Update docs/api/procs/pipelines.rst

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

Co-authored-by: Gil Forsyth <gil@forsyth.dev>
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-10-20 10:21:11 -04:00
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
9aa4d4803c
fix test case for convert_macro_arg (#3552)
* fix test case for convert_macro_arg

* fix test case for convert_macro_arg
2020-04-30 20:31:45 -04:00
Anthony Scopatz
dc8728bdaf Added THREAD_SUBPROCS env var 2019-10-05 16:37:45 -04:00
Anthony Scopatz
c62032075c fixed macro issues 2019-02-14 16:19:13 -05:00
David Dotson
1c8144b354 Merge branch 'master' into xonsh_session
Hoping I didn't introduce a regression into `built_ins.py`...
2018-09-29 17:33:26 -07:00
Anthony Scopatz
f0c3a4b1cd more tests, news and docs 2018-09-17 18:23:20 -04: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
Anthony Scopatz
9f7c9ae817 fixed tilde expansion 2016-09-09 19:21:26 -04:00
Anthony Scopatz
48ff3d3754 fixed conflict 2016-09-01 19:33:01 -04:00
Anthony Scopatz
a0e2d9a2d4 fixed conflicts 2016-08-31 01:37:14 -04:00
Anthony Scopatz
e87021a585 enter_macro() call 2016-08-28 23:16:56 -04:00
Anthony Scopatz
2a3254f387 some minor API changes 2016-08-28 13:46:05 -04:00
Anthony Scopatz
a3c03b0b07 macro escape 2016-08-27 13:27:15 -04:00
Anthony Scopatz
8ddb15861f some raw tests 2016-08-27 13:06:08 -04:00
Anthony Scopatz
d0804650f3 more make test windows friendly 2016-08-25 01:21:17 -04:00
Anthony Scopatz
d02b05c89d make test windows friendly 2016-08-25 01:15:32 -04:00
Anthony Scopatz
50e2f80e10 more tilde expansions 2016-08-25 01:04:08 -04:00
Anthony Scopatz
1d595e9ad9 added types to macros 2016-08-20 21:11:07 -04:00
Anthony Scopatz
dcc17effd1 more stuff 2016-08-20 20:32:30 -04:00
Anthony Scopatz
93e144f5b1 started docs 2016-08-20 17:00:10 -04:00
Anthony Scopatz
d5be829598 even more macro tests 2016-08-20 16:00:30 -04:00
Anthony Scopatz
37e458109c more call macro tests 2016-08-20 15:50:36 -04:00
Anthony Scopatz
3f2a168d47 some tests 2016-08-20 15:39:02 -04:00
laerus
daf1928dd0 'fixtures docs' 2016-07-03 12:00:24 +03:00
laerus
bea8c62829 tests bugs fixing/test_parser & test_tools to go 2016-07-01 21:52:37 +03:00
Konstantinos Tsakiltzidis
2f2f1622c9 'test_builtins' 2016-06-29 18:32:42 +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
28ec6ea977 'need more fixturesr' 2016-06-25 13:06:59 +03:00
Gil Forsyth
6f4fc7564e cleanup and extra fixes 2016-06-22 18:23:36 -04:00
Konstantinos Tsakiltzidis
90fdda6908 test_builtins 2016-06-22 22:50:01 +03:00
Gil Forsyth
46f842dcbe Merge master and update setup syntax in execer test 2016-06-22 09:57:31 -04:00
adam j hartz
8ae42ec987 builtins 2016-06-16 01:01:23 -04:00
adam j hartz
a241d7a962 fix bad merge 2016-06-16 00:59:57 -04:00
adam j hartz
2841c126df update tests, add some new tests 2016-06-16 00:59:57 -04:00
adam j hartz
db39040b31 add tests for new callable list 2016-06-11 01:40:26 -04:00
Gil Forsyth
74d4e6b892 change test setup syntax to match pytest 2016-06-07 15:53:38 -04:00
adam j hartz
82fff5c4d6 fix test cases after moving things around 2016-06-01 13:59:33 -04:00
Anthony Scopatz
9d9c8bef31 fixed some tests 2016-02-18 00:45:01 -05:00
adam j hartz
26bd38bbab update test cases 2015-12-19 21:17:03 -05: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
Anthony Scopatz
7a300bf7d0 more win tests 6 2015-08-02 13:36:44 -05:00
Anthony Scopatz
dbb681ceac more win tests 5 2015-08-02 13:32:44 -05:00
Anthony Scopatz
1def948129 more win tests 4 2015-08-02 13:28:13 -05:00