(LIMIT, over_limit)
| 81 | |
| 82 | |
| 83 | def 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 | |
| 95 | def test_row_limit_on_non_select(over_limit): |
nothing calls this directly
no test coverage detected