Commit graph

22 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
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
Peter Ye
8bf47f29be
ast: do not descend into any comprehensions (#4622)
* ast: do not descend into any comprehensions

* add test

* add news
2022-01-05 09:35:50 -05: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
Raphael Das Gupta
3a232c6782
make comments easier to comprehend (#3517)
Make comments in the test_multiline_...-testcases easier to comprehend
by using correct grammar and spelling and by stating more relevant aspects.

Comment on test parameters with inline instead of block comments,
as this makes it easier to associate code lines with comments,
without having to resort to additional blank lines for separation.
2020-04-15 14:14:24 -04:00
Anthony Scopatz
a1e2c40688 xonsh execer on AST test 2018-11-19 20:08:44 -05:00
Anthony Scopatz
9084c376b2 execalias 2018-11-09 13:49:33 -06:00
Gil Forsyth
448ea11323 Potential fix for ast test failures from attribute error 2018-10-16 14:16:17 -04:00
Jared Crawford
0809502e20 Fix issues #2584 and #2430 2018-09-29 01:55:30 -07:00
Anthony Scopatz
634a8ec9f2 black tests 2018-08-30 09:18:49 -05:00
Anthony Scopatz
9f355b140c lambda AST fixes 2018-04-03 21:57:30 -04:00
Anthony Scopatz
bdd0ecbe5c fix windows tests 2017-03-02 23:25:30 -05:00
Anthony Scopatz
27437a4913 fixed issue with accidentally wrapping generators in function calls 2016-09-09 19:07:41 -04:00
Anthony Scopatz
7837563baf check all names 2016-08-21 14:58:07 -04:00
Anthony Scopatz
c8727f17b3 Added function arguments to scope 2016-08-19 01:45:44 -04:00
laerus
bea8c62829 tests bugs fixing/test_parser & test_tools to go 2016-07-01 21:52:37 +03:00
Gil Forsyth
81ab922a12 port ast and contexts to pytest 2016-06-22 17:12:33 -04:00
Anthony Scopatz
2e2e39a540 increment line numbers on transformation 2016-06-10 02:50:56 -04:00
Anthony Scopatz
d1ec37f914 not working yet 2016-06-05 14:32:59 -04:00