MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / test_set_charset_deprecated

Function test_set_charset_deprecated

pymysql/tests/test_err.py:34–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_set_charset_deprecated():
35 con = mock.Mock(spec=Connection)
36 with pytest.warns(
37 DeprecationWarning,
38 match="'set_charset' is deprecated, use 'set_character_set' instead",
39 ):
40 Connection.set_charset(con, "utf8mb4")
41 con.set_character_set.assert_called_once_with("utf8mb4")

Callers

nothing calls this directly

Calls 1

set_charsetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…