def test_measure(): console = Console(width=120) bar = Bar(size=100, begin=11, end=62) measurement = bar.__rich_measure__(console, console.options) assert measurement.minimum == 4 assert measurement.maximum == 120
def test_measure(): bar = Bar(size=100, begin=11, end=62) measurement = bar.__rich_measure__(None, 120) assert measurement.minimum == 4 assert measurement.maximum == 120
def test_measure(): bar = Bar() measurement = bar.__rich_measure__(None, 120) assert measurement.minimum == 4 assert measurement.maximum == 120