MCPcopy Create free account
hub / github.com/dbcli/mycli / test_get_uptime_ignores_operational_error

Function test_get_uptime_ignores_operational_error

test/pytests/test_special_utils.py:112–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111
112def test_get_uptime_ignores_operational_error() -> None:
113 cur = MagicMock()
114 cur.execute.side_effect = pymysql.err.OperationalError()
115
116 assert get_uptime(cur) == 0
117
118
119def test_get_warning_count_returns_value_from_count_row() -> None:

Callers

nothing calls this directly

Calls 1

get_uptimeFunction · 0.90

Tested by

no test coverage detected