Commit graph

75 commits

Author SHA1 Message Date
pre-commit-ci[bot]
66c0490d37
[pre-commit.ci] pre-commit autoupdate (#5271)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-30 12:23:50 +01:00
Noortheen Raja
f2b7d4ed4f style: sort imports 2022-03-24 19:49:30 +05:30
Noortheen Raja
81b65556a5 chore: update tests 2022-03-24 19:49:30 +05:30
Peter Ye
e5af63bff7
Fix regex globbing for paths that contain special regex characters (#4715)
* Fix regex globbing for paths that contain special regex characters

* Skip regex globbing asterisk character tests on Windows

Asterisks are forbidden in Windows filenames. Plus signs are allowed in Windows filenames, so the plus sign tests run properly.
2022-03-20 01:10:57 +05:30
Noortheen Raja
78091a22f3 style: isort imports
fix #4584
2022-01-31 11:16:51 -05:00
Noorhteen Raja NJ
7c4e207abd
update test xsh usage (#4581)
* todo

* test: remove usage of DummyEnv and setting .env attribute on xession fixture

one step closer to making too much of tweaking to xession during tests

* test: fix tests vox and gitstatus-prompt

* docs: update test-fixture usage

* fix: import flake8 error

* test: remove direct access to XSH in tests

* test: remove usage of XSH in test files

* todo

* test: use tmp-dir to create stubs

* refactor: use fixture factory to mock out XonshSession

* refactor: remove direct access of XSH from functions

* refactor: remove direct access of XSH from functions

* fix: qa checks

* refactor: rename variables to match their values

* test: update failing tests because it had no PATH set previously

* fix: remove builtins usage from pyghooks.py

* style:

* refactor: update tests to use fixtures

* fix: env varialbe is setup per function

some tests accidentally update the env variables and that is leaking
into next tests

* fix: failing vox tests

* test: set commands_cache per test

* test: fix failing tests

* fix: failing tests on linux

ptk-highlight

* fix: failing tests on Windows

cwd-prompt

* test: copy env as to not affect original object

* fix: lazily evaluate cmds-cache in pyghooks

* test: fix failing tests

* fix: qa errors import

* test: set commands-cache per test

while caching path results

* test: speedup test_thread_local_swap

* fix: failing tests on windows

* refactor: Execer doesn't control session

* refactor: XSH.unload will take care of reversing builtins attrs set

* test: use env.update over monkeypatch

* Revert "test: use env.update over monkeypatch"

This reverts commit 010a5022247a098f1741966b8af1bf758663480e.
2022-01-07 17:33:22 -05:00
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