I am testing a function that produces results that are very long when represented, and I don't know how to fit that result into the doctest.
In this example, I'm using pscyopg2, which has verbose representations for its composed queries (details as to why)
from psycopg2.sql import Literal, Composed
def foo(a, b):
"""
Examples:
>>> foo('one', 'two')
Composed([SQL('SELECT * FROM my_table WHERE a='), Literal('one'), SQL(' AND b='), Literal('two')])
"""
The result line can get really long, and I'm wondering if it's possible to break it up into multiple lines, like the input expression with ...