()
| 60 | |
| 61 | |
| 62 | def test_format_output(): |
| 63 | settings = OutputSettings(table_format="psql", dcmlfmt="d", floatfmt="g") |
| 64 | results = format_output("Title", [("abc", "def")], ["head1", "head2"], "test status", settings) |
| 65 | expected = [ |
| 66 | "Title", |
| 67 | "+-------+-------+", |
| 68 | "| head1 | head2 |", |
| 69 | "|-------+-------|", |
| 70 | "| abc | def |", |
| 71 | "+-------+-------+", |
| 72 | "test status", |
| 73 | ] |
| 74 | assert list(results) == expected |
| 75 | |
| 76 | |
| 77 | def test_column_date_formats(): |
nothing calls this directly
no test coverage detected