Commit graph

5 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
Bob Hyman
48238beec1 more mocks for test_xonfig_kernel 2020-09-23 04:35:44 -04:00
Bob Hyman
a7e6511381 fix test failure on linux only. 2020-09-17 03:37:23 -04:00
Bob Hyman
ec320857c8 add fake_lib for mocks of packages;refine tests on xonsh jupyter-kernel. 2020-09-17 02:56:01 -04:00
Bob Hyman
e24fe29d50 WIP -- unit tests for xonfig jupyter_kernel 2020-09-16 02:17:59 -04:00