MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / test_get_key_encoding

Function test_get_key_encoding

tests/test_main.py:119–126  ·  view source on GitHub ↗
(dotenv_file)

Source from the content-addressed store, hash-verified

117
118
119def test_get_key_encoding(dotenv_file):
120 encoding = "latin-1"
121 with open(dotenv_file, "w", encoding=encoding) as f:
122 f.write("é=è")
123
124 result = dotenv.get_key(dotenv_file, "é", encoding=encoding)
125
126 assert result == "è"
127
128
129def test_get_key_none(dotenv_file):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected