xonsh/tests
Gordon Ball 14c2c3ce62
Don't modify XONSHRC and XONSHRC_DIR during startup (#4408)
* xonshrc_context: return loaded instead of context, don't touch env

This function returned the context, but the return value is not used by
the sole call site (and would inconsistently be either the env or ctx
depending on other arguments). Redefine the function to return what was
loaded.

The function will also no longer touch the environment variables
XONSHRC, XONSHRC_DIR or LOADED_RC_FILES.

* XonshSession: add rc_files list, and set in start_services

* LOADED_RC_FILES: drop completely

* xonfig: add RC files

* test_main: update tests for changes to XONSHRC{,_DIR}

* news: add entry for xonshrc changes
2021-08-17 11:01:41 -04:00
..
aliases refactor: flaky test_xexec. (#4415) 2021-08-16 09:25:27 +03:00
bin Use full paths when launching processes on Windows (#4077) 2021-08-16 22:02:12 +03:00
completers Complete environment description (#4397) 2021-08-01 00:37:54 +03:00
fake_lib more mocks for test_xonfig_kernel 2020-09-23 04:35:44 -04:00
histories Fix tests 2020-09-23 21:15:37 +02:00
man1 tests for man completion 2015-06-17 22:58:05 +02:00
procs Change !() to also capture background subprocesses (#4406) 2021-08-01 21:58:19 +03:00
prompt feat: add config option to hide gitstatus prompt fields (#4294) 2021-06-11 02:24:24 +03:00
scripts xonsh script.xsh should not fail over 2017-01-11 21:59:42 +08:00
test_lib procs: Add $XONSH_CAPTURE_ALWAYS variable for opt-in interactive capt… (#4283) 2021-06-21 12:36:37 -04:00
xontribs Fix jedi path completion (#4400) 2021-07-29 10:02:25 +03:00
xpack test subpackage 2015-03-29 22:53:33 -05:00
.somedotfile dotfile matching 2018-09-12 18:12:02 -04:00
bashrc.sh added tests for foreign shells 2015-10-10 19:52:53 -04:00
batch.bat Add test for sourcing bat file on windows 2016-04-18 00:41:11 +02:00
conftest.py test: speedup test suit by reusing costly vars (#4384) 2021-08-10 10:17:20 +03:00
run_pwd.xsh more fixes 2016-09-09 00:58:32 -04:00
sample.xsh fixed up dashing 2018-11-08 13:16:44 -05:00
test_aliases.py test: remove redundant xonsh session mock fixture (#4390) 2021-07-25 18:38:10 +03:00
test_ansi_colors.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_ast.py Flake8 1 (#3550) 2020-05-05 06:42:28 -04:00
test_base_shell.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_bashisms.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_builtins.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_cli_utils.py Completer py api (#4018) 2020-12-16 14:26:22 -05:00
test_color_tools.py Fix tests 2020-09-23 21:15:37 +02:00
test_commands_cache.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_completer.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_completion_context.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_contexts.py black tests 2018-08-30 09:18:49 -05:00
test_dirstack.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_dirstack_unc.py add py310 (#4270) 2021-06-07 13:40:40 -04:00
test_environ.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_events.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_execer.py fix surprising scoping behavior in execx and xonsh -c (#4363) (#4364) 2021-07-24 17:17:37 +03:00
test_foreign_shells.py Flake8 1 (#3550) 2020-05-05 06:42:28 -04:00
test_history_dummy.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_history_json.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_history_sqlite.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_imphooks.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_integrations.py Use full paths when launching processes on Windows (#4077) 2021-08-16 22:02:12 +03:00
test_jsonutils.py black tests 2018-08-30 09:18:49 -05:00
test_jupyter_kernel.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_lazyasd.py black tests 2018-08-30 09:18:49 -05:00
test_lazyjson.py black tests 2018-08-30 09:18:49 -05:00
test_lexer.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_main.py Don't modify XONSHRC and XONSHRC_DIR during startup (#4408) 2021-08-17 11:01:41 -04:00
test_man.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_mpl.py Flake8 1 (#3550) 2020-05-05 06:42:28 -04:00
test_news.py feat: use rst-linter for news items check (#4398) 2021-07-28 10:16:35 -04:00
test_parser.py refactor: remove unused argument to parser (#4344) 2021-07-01 15:17:45 +03:00
test_path_completers.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_pipelines.py procs: Add $XONSH_CAPTURE_ALWAYS variable for opt-in interactive capt… (#4283) 2021-06-21 12:36:37 -04:00
test_platform.py Fix empty command error message (#4308) 2021-06-11 14:11:19 +03:00
test_ptk_completer.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_ptk_highlight.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_ptk_history.py black updates to tests and docs 2020-08-26 10:10:59 -05:00
test_ptk_multiline.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_ptk_shell.py add py310 (#4270) 2021-06-07 13:40:40 -04:00
test_pyghooks.py Short color token name support for register_custom_style() (#4339) (#4342) 2021-07-24 18:37:51 +03:00
test_python_completers.py Improve import completions (#4396) 2021-08-16 12:01:50 -04:00
test_readline_shell.py black updates to tests and docs 2020-08-26 10:10:59 -05:00
test_shell.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_tools.py Fix the handling of colons when mixed with comments (#4332) 2021-06-20 12:50:03 +03:00
test_vox.py fix: vox system_site_packages option not passed (#4404) 2021-08-11 09:46:32 +03:00
test_wizard.py Flake8 1 (#3550) 2020-05-05 06:42:28 -04:00
test_xonfig.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_xonsh.xsh Remove globals (#4280) 2021-05-20 13:14:26 +03:00
test_xontribs.py refactor: replace xontribs.json with xontribs_meta.py 2020-11-10 22:12:27 +05:30
test_xoreutils.py Remove globals (#4280) 2021-05-20 13:14:26 +03:00
tools.py feat: add config option to hide gitstatus prompt fields (#4294) 2021-06-11 02:24:24 +03:00