MCPcopy Create free account
hub / github.com/aws/aws-cli / test_set_preferred_output_encoding

Function test_set_preferred_output_encoding

tests/unit/test_compat.py:254–261  ·  view source on GitHub ↗
(env_vars, expected_encoding)

Source from the content-addressed store, hash-verified

252 ],
253)
254def test_set_preferred_output_encoding(env_vars, expected_encoding):
255 stdout_b = io.BytesIO()
256 stdout = io.TextIOWrapper(stdout_b, encoding="cp1252")
257
258 with mock.patch.dict(os.environ, env_vars):
259 set_preferred_output_encoding(stdout)
260
261 assert stdout.encoding == expected_encoding
262
263
264def test_validate_preferred_output_encoding():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected