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

Function test_row_limit_without_LIMIT_clause

tests/test_rowlimit.py:83–92  ·  view source on GitHub ↗
(LIMIT, over_limit)

Source from the content-addressed store, hash-verified

81
82
83def test_row_limit_without_LIMIT_clause(LIMIT, over_limit):
84 cli = PGCli(row_limit=LIMIT)
85 stmt = "SELECT * FROM students"
86
87 result = cli._should_limit_output(stmt, over_limit)
88 assert result is True
89
90 cli = PGCli(row_limit=0)
91 result = cli._should_limit_output(stmt, over_limit)
92 assert result is False
93
94
95def test_row_limit_on_non_select(over_limit):

Callers

nothing calls this directly

Calls 2

_should_limit_outputMethod · 0.95
PGCliClass · 0.90

Tested by

no test coverage detected