MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_no_env_uses_os_environ

Method test_no_env_uses_os_environ

tests/test_cmd.py:134–139  ·  view source on GitHub ↗
(self, monkeypatch)

Source from the content-addressed store, hash-verified

132 assert result.stderr == b""
133
134 def test_no_env_uses_os_environ(self, monkeypatch):
135 monkeypatch.setenv("CZ_NO_ENV_TEST", "inherited")
136 result = cmd.run(
137 ["python", "-c", "import os; print(os.environ['CZ_NO_ENV_TEST'])"]
138 )
139 assert "inherited" in result.out
140
141
142class TestRunShell:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected