MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / test_default_row_limit

Method test_default_row_limit

tests/test_rowlimit.py:18–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 over_limit = LIMIT + 1
17
18 def test_default_row_limit(self):
19 cli = MssqlCli(self.DEFAULT_OPTIONS)
20 stmt = "SELECT * FROM students"
21 result = cli._should_show_limit_prompt(stmt, ['row']*self.low_count)
22 assert not result
23
24 result = cli._should_show_limit_prompt(stmt, ['row']*self.over_default)
25 assert result
26
27 def test_no_limit(self):
28 cli_options = create_mssql_cli_options(row_limit=0)

Callers

nothing calls this directly

Calls 2

MssqlCliClass · 0.90

Tested by

no test coverage detected