You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking into possible solution I found this suggestion about capturing the output. In that case, I can compare with something like Hello\x1b[34m Jon\x1b[0m\n, but I find this a bit cryptic for a test.
The text was updated successfully, but these errors were encountered:
Hi,
I'd like to test that a
Text
object is rendered in a specific way. For example, given the following function:I would like to write a test that makes sure that the format is as expected, kind of:
Looking into possible solution I found this suggestion about capturing the output. In that case, I can compare with something like
Hello\x1b[34m Jon\x1b[0m\n
, but I find this a bit cryptic for a test.The text was updated successfully, but these errors were encountered: