MCPcopy
hub / github.com/conda/conda / get_scripts_export_unset_vars

Function get_scripts_export_unset_vars

tests/test_activate.py:215–227  ·  view source on GitHub ↗
(
    activator: _Activator,
    **kwargs: str,
)

Source from the content-addressed store, hash-verified

213
214
215def get_scripts_export_unset_vars(
216 activator: _Activator,
217 **kwargs: str,
218) -> tuple[str, str]:
219 export_vars, unset_vars = activator.get_export_unset_vars(**kwargs)
220 return (
221 activator.command_join.join(
222 activator.export_var_tmpl % (k, v) for k, v in (export_vars or {}).items()
223 ),
224 activator.command_join.join(
225 activator.unset_var_tmpl % (k) for k in (unset_vars or [])
226 ),
227 )
228
229
230@pytest.mark.parametrize("envvars_force_uppercase", [True, False])

Callers 6

test_posix_basicFunction · 0.85
test_cmd_exe_basicFunction · 0.85
test_csh_basicFunction · 0.85
test_xonsh_basicFunction · 0.85
test_fish_basicFunction · 0.85
test_powershell_basicFunction · 0.85

Calls 2

get_export_unset_varsMethod · 0.80
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…