MCPcopy
hub / github.com/dbcli/pgcli / test_row_limit_on_non_select

Function test_row_limit_on_non_select

tests/test_rowlimit.py:95–103  ·  view source on GitHub ↗
(over_limit)

Source from the content-addressed store, hash-verified

93
94
95def test_row_limit_on_non_select(over_limit):
96 cli = PGCli()
97 stmt = "UPDATE students SET name='Boby'"
98 result = cli._should_limit_output(stmt, over_limit)
99 assert result is False
100
101 cli = PGCli(row_limit=0)
102 result = cli._should_limit_output(stmt, over_limit)
103 assert result is False

Callers

nothing calls this directly

Calls 2

_should_limit_outputMethod · 0.95
PGCliClass · 0.90

Tested by

no test coverage detected