MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_format_output_truncate_off

Function test_format_output_truncate_off

tests/test_main.py:147–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145
146
147def test_format_output_truncate_off():
148 settings = OutputSettings(table_format="psql", dcmlfmt="d", floatfmt="g", max_field_width=None)
149 long_field_value = ("first field " * 100).strip()
150 results = format_output(None, [(long_field_value,)], ["head1"], None, settings)
151 lines = list(results)
152 assert lines[3] == f"| {long_field_value} |"
153
154
155@dbtest

Callers

nothing calls this directly

Calls 1

format_outputFunction · 0.90

Tested by

no test coverage detected