Skip to content

Unit tests for progress bar in pytest #1093

Answered by willmcgugan
EdLeafe asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ed,

I think I know what is going on. Rich will hide things like progress bars if it detects it is not writing to a terminal. This is because you don't want all the frames of progress bars written out if you are piping to a file for example.

You can add force_terminal=True to the Console constructor to bypass that and render the progress bars.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EdLeafe
Comment options

Answer selected by willmcgugan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants