MCPcopy Create free account
hub / github.com/pyinvoke/invoke / updates_when_dict_given

Method updates_when_dict_given

tests/runners.py:243–245  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 assert self._run(_).env == os.environ
242
243 def updates_when_dict_given(self):
244 expected = dict(os.environ, FOO="BAR")
245 assert self._run(_, env={"FOO": "BAR"}).env == expected
246
247 def replaces_when_replace_env_True(self):
248 env = self._run(_, env={"JUST": "ME"}, replace_env=True).env

Callers

nothing calls this directly

Calls 1

_runMethod · 0.45

Tested by

no test coverage detected