MCPcopy
hub / github.com/pallets/click / make_env

Method make_env

src/click/testing.py:389–396  ·  view source on GitHub ↗

Returns the environment overrides for invoking a script.

(
        self, overrides: cabc.Mapping[str, str | None] | None = None
    )

Source from the content-addressed store, hash-verified

387 return cli.name or "root"
388
389 def make_env(
390 self, overrides: cabc.Mapping[str, str | None] | None = None
391 ) -> cabc.Mapping[str, str | None]:
392 """Returns the environment overrides for invoking a script."""
393 rv = dict(self.env)
394 if overrides:
395 rv.update(overrides)
396 return rv
397
398 @contextlib.contextmanager
399 def isolation(

Callers 1

isolationMethod · 0.95

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected