Home
last modified time | relevance | path

Searched refs:xonsh_builtins (Results 1 – 25 of 26) sorted by relevance

12

/dports/shells/xonsh/xonsh-0.7.9/tests/
H A Dtest_vox.py15 def test_crud(xonsh_builtins, tmpdir): argument
23 @xonsh_builtins.events.vox_on_create
28 @xonsh_builtins.events.vox_on_delete
53 def test_activate(xonsh_builtins, tmpdir): argument
59 xonsh_builtins.__xonsh_env__.setdefault("PATH", [])
63 @xonsh_builtins.events.vox_on_activate
68 @xonsh_builtins.events.vox_on_deactivate
85 def test_path(xonsh_builtins, tmpdir): argument
108 def test_crud_subdir(xonsh_builtins, tmpdir): argument
141 def test_crud_path(xonsh_builtins, tmpdir): argument
[all …]
H A Dtest_history.py34 def test_hist_append(hist, xonsh_builtins): argument
36 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
52 def test_hist_flush(hist, xonsh_builtins): argument
56 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
73 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
108 def test_cmd_field(hist, xonsh_builtins): argument
142 xonsh_builtins.__xonsh_history__ = hist
158 def test_histcontrol(hist, xonsh_builtins): argument
298 def test_construct_history_str(xonsh_builtins): argument
303 def test_construct_history_class(xonsh_builtins): argument
[all …]
H A Dtest_environ.py162 xonsh_builtins.__xonsh_env__ = env
165 @xonsh_builtins.events.on_envvar_change
177 xonsh_builtins.__xonsh_env__ = env
180 @xonsh_builtins.events.on_envvar_new
192 xonsh_builtins.__xonsh_env__ = env
195 @xonsh_builtins.events.on_envvar_change
208 xonsh_builtins.__xonsh_env__ = env
211 @xonsh_builtins.events.on_envvar_change
223 xonsh_builtins.__xonsh_env__ = env
226 @xonsh_builtins.events.on_envvar_new
[all …]
H A Dtest_prompt.py16 def formatter(xonsh_builtins): argument
80 xonsh_builtins.__xonsh_env__ = Env()
90 xonsh_builtins.__xonsh_env__ = Env()
155 def test_no_repo(xonsh_builtins): argument
167 def test_vc_get_branch(test_repo, xonsh_builtins): argument
168 xonsh_builtins.__xonsh_env__ = Env(VC_BRANCH_TIMEOUT=2)
177 cache = xonsh_builtins.__xonsh_commands_cache__
178 xonsh_builtins.__xonsh_env__ = DummyEnv(VC_BRANCH_TIMEOUT=1)
186 xonsh_builtins argument
188 cache = xonsh_builtins.__xonsh_commands_cache__
[all …]
H A Dtest_dirstack.py29 def test_simple(xonsh_builtins): argument
30 xonsh_builtins.__xonsh_env__ = Env(CDPATH=PARENT, PWD=PARENT)
37 def test_cdpath_simple(xonsh_builtins): argument
38 xonsh_builtins.__xonsh_env__ = Env(CDPATH=PARENT, PWD=HERE)
45 def test_cdpath_collision(xonsh_builtins): argument
46 xonsh_builtins.__xonsh_env__ = Env(CDPATH=PARENT, PWD=HERE)
56 def test_cdpath_expansion(xonsh_builtins): argument
75 def test_cdpath_events(xonsh_builtins, tmpdir): argument
76 xonsh_builtins.__xonsh_env__ = Env(CDPATH=PARENT, PWD=os.getcwd())
81 @xonsh_builtins.events.on_chdir
[all …]
H A Dtest_dirstack_unc.py94 def test_pushdpopd(xonsh_builtins): argument
97 xonsh_builtins.__xonsh_env__ = Env(CDPATH=PARENT, PWD=HERE)
109 def test_cd_dot(xonsh_builtins): argument
110 xonsh_builtins.__xonsh_env__ = Env(PWD=os.getcwd())
121 xonsh_builtins.__xonsh_env__ = Env(CDPATH=PARENT, PWD=HERE)
216 def test_uncpushd_push_base_push_rempath(xonsh_builtins): argument
287 def xonsh_builtins_cd(xonsh_builtins): argument
288 xonsh_builtins.__xonsh_env__["CDPATH"] = PARENT
289 xonsh_builtins.__xonsh_env__["PWD"] = os.getcwd()
290 xonsh_builtins.__xonsh_env__["DIRSTACK_SIZE"] = 20
[all …]
H A Dtest_history_sqlite.py22 def test_hist_append(hist, xonsh_builtins): argument
24 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
39 def test_hist_attrs(hist, xonsh_builtins): argument
40 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
79 xonsh_builtins.__xonsh_history__ = hist
80 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
95 def test_histcontrol(hist, xonsh_builtins): argument
98 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = "ignoredups,ignoreerr"
183 def test_history_getitem(index, exp, hist, xonsh_builtins): argument
184 xonsh_builtins.__xonsh_env__["HISTCONTROL"] = set()
[all …]
H A Dtest_base_shell.py10 def test_pwd_tracks_cwd(xonsh_builtins, xonsh_execer, tmpdir_factory, monkeypatch): argument
13 xonsh_builtins.__xonsh_env__ = Env(
26 xonsh_builtins.__xonsh_env__["PWD"]
28 assert "OLDPWD" in xonsh_builtins.__xonsh_env__
30 xonsh_builtins.__xonsh_env__["OLDPWD"]
34 def test_transform(xonsh_builtins): argument
35 @xonsh_builtins.events.on_transform_command
H A Dtest_path_completers.py11 def xonsh_execer_autouse(xonsh_builtins, xonsh_execer): argument
20 def test_complete_path(xonsh_builtins): argument
21 xonsh_builtins.__xonsh_env__ = {
33 def test_cd_path_no_cd(mock_add_cdpaths, xonsh_builtins): argument
34 xonsh_builtins.__xonsh_env__ = {
H A Dtest_aliases.py41 def test_eval_normal(xonsh_builtins): argument
45 def test_eval_self_reference(xonsh_builtins): argument
49 def test_eval_recursive(xonsh_builtins): argument
54 def test_eval_recursive_callable_partial(xonsh_builtins): argument
55 xonsh_builtins.__xonsh_env__ = Env(HOME=os.path.expanduser("~"))
H A Dtest_commands_cache.py16 def test_commands_cache_lazy(xonsh_builtins): argument
96 def test_cd_is_only_functional_alias(xonsh_builtins): argument
102 def test_non_exist_is_only_functional_alias(xonsh_builtins): argument
108 def test_bash_is_only_functional_alias(xonsh_builtins): argument
115 def test_bash_and_is_alias_is_only_functional_alias(xonsh_builtins): argument
H A Dtest_man.py10 def test_man_completion(monkeypatch, tmpdir, xonsh_builtins): argument
15 xonsh_builtins.__xonsh_env__.update({"XONSH_DATA_DIR": str(tempdir)})
16 completions = complete_from_man("--", "yes --", 4, 6, xonsh_builtins.__xonsh_env__)
H A Dtest_tools.py856 def test_env_path_getitem(inp, exp, xonsh_builtins, env): argument
857 xonsh_builtins.__xonsh_env__ = env
881 xonsh_builtins.__xonsh_env__ = env
905 xonsh_builtins.__xonsh_env__ = TOOLS_ENV
1361 def test_executables_in(xonsh_builtins): argument
1439 def test_expandvars(inp, exp, xonsh_builtins): argument
1444 xonsh_builtins.__xonsh_env__ = env
1491 xonsh_builtins.__xonsh_env__ = env
1605 def test_iglobpath_no_dotfiles(xonsh_builtins): argument
1613 def test_iglobpath_dotfiles(xonsh_builtins): argument
[all …]
H A Dtest_bashisms.py6 def test_preproc(inp, exp, xonsh_builtins): argument
10 xonsh_builtins.__xonsh_history__.inps = ["ls\n"]
H A Dtest_builtins.py48 def home_env(xonsh_builtins): argument
50 xonsh_builtins.__xonsh_env__ = Env(HOME=HOME_PATH)
51 return xonsh_builtins
154 def test_list_of_list_of_strs_outer_product(xonsh_builtins, inp, exp): argument
H A Dtest_events.py159 def test_typos(xonsh_builtins): argument
160 for name, ev in vars(xonsh_builtins.events).items():
H A Dtest_python_completers.py9 def xonsh_execer_autouse(xonsh_builtins, xonsh_execer): argument
H A Dtest_execer.py11 def xonsh_execer_autouse(xonsh_builtins, xonsh_execer): argument
H A Dtest_ast.py52 def test_multilline_num(xonsh_builtins, line1): argument
H A Dconftest.py46 def xonsh_builtins(xonsh_events): function
H A Dtest_main.py22 def shell(xonsh_builtins, xonsh_execer, monkeypatch): argument
H A Dtest_contexts.py11 def xonsh_execer_autouse(xonsh_builtins, xonsh_execer): argument
H A Dtest_parser.py20 def xonsh_builtins_autouse(xonsh_builtins): argument
21 return xonsh_builtins
/dports/shells/xonsh/xonsh-0.7.9/xonsh/
H A Dbuilt_ins.py1345 def xonsh_builtins(execer=None): function
/dports/shells/xonsh/xonsh-0.7.9/
H A DCHANGELOG.rst1734 * xonsh_builtins, xonsh_execer fixtures in conftest.py

12