(self)
| 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) |
nothing calls this directly
no test coverage detected