MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / test_set_charset_deprecated

Function test_set_charset_deprecated

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

Source from the content-addressed store, hash-verified

33
34
35def test_set_charset_deprecated():
36 con = mock.Mock(spec=Connection)
37 with pytest.warns(
38 DeprecationWarning,
39 match="'set_charset' is deprecated, use 'set_character_set' instead",
40 ):
41 Connection.set_charset(con, "utf8mb4")
42 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